mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-21 10:55:39 +00:00
Outsourced the generate rekku token job
This commit is contained in:
parent
0cb68766c5
commit
991553788a
7
.github/workflows/build_artifacts.yml
vendored
7
.github/workflows/build_artifacts.yml
vendored
|
@ -30,13 +30,8 @@ jobs:
|
|||
run: curl -s "https://raw.githubusercontent.com/RetroDECK/components-template/refs/heads/main/automation_tools/install_dependencies.sh" | /bin/bash
|
||||
|
||||
- name: Generate a token for Rekku
|
||||
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ vars.REKKU_APP_ID }}
|
||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||
owner: "RetroDECK"
|
||||
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
|
||||
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
|
|
18
.github/workflows/generate_rekku_token.yml
vendored
Normal file
18
.github/workflows/generate_rekku_token.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: "Generate a token for Rekku"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
Generate-a-token-for-Rekku:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Generate a token for Rekku
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ vars.REKKU_APP_ID }}
|
||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||
owner: "RetroDECK"
|
6
.github/workflows/pr_from_upstream.yml
vendored
6
.github/workflows/pr_from_upstream.yml
vendored
|
@ -25,11 +25,7 @@ jobs:
|
|||
|
||||
- name: Generate a token for Rekku
|
||||
id: generate-rekku-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ vars.REKKU_APP_ID }}
|
||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||
owner: "RetroDECK"
|
||||
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
|
||||
|
||||
- name: Configuring Git
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue