Outsourced the generate rekku token job

This commit is contained in:
XargonWan 2024-11-12 10:05:48 +09:00
parent 0cb68766c5
commit 991553788a
3 changed files with 20 additions and 11 deletions

View file

@ -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 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 - name: Generate a token for Rekku
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
id: generate-rekku-token id: generate-rekku-token
uses: actions/create-github-app-token@v1 uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
with:
app-id: ${{ vars.REKKU_APP_ID }}
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
owner: "RetroDECK"
- name: Clone repo - name: Clone repo
uses: actions/checkout@v4 uses: actions/checkout@v4

View 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"

View file

@ -25,11 +25,7 @@ jobs:
- name: Generate a token for Rekku - name: Generate a token for Rekku
id: generate-rekku-token id: generate-rekku-token
uses: actions/create-github-app-token@v1 uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
with:
app-id: ${{ vars.REKKU_APP_ID }}
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
owner: "RetroDECK"
- name: Configuring Git - name: Configuring Git
run: | run: |