From 475eee46b9b96ff39525c55cf41e4c09667188a2 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 5 Nov 2024 13:32:09 +0900 Subject: [PATCH] Added Rekku token step --- .github/workflows/build_artifacts.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_artifacts.yml b/.github/workflows/build_artifacts.yml index fb9c75c..b3d7c44 100644 --- a/.github/workflows/build_artifacts.yml +++ b/.github/workflows/build_artifacts.yml @@ -88,6 +88,16 @@ jobs: id: branch_name run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV + - 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 }} + repositories: "RetroDECK,Cooker" + owner: "RetroDECK" + - name: Publish the artifacts in a new release uses: ncipollo/release-action@v1 with: @@ -99,4 +109,4 @@ jobs: artifacts: "${GITHUB_WORKSPACE}/RetroDECK-Artifact.tar.gz, ${GITHUB_WORKSPACE}/tree.html" allowUpdates: true makeLatest: true - token: ${{ secrets.TRIGGER_BUILD_TOKEN || secrets.GITHUB_TOKEN }} + token: ${{ steps.generate-rekku-token.outputs.token || secrets.TRIGGER_BUILD_TOKEN || secrets.GITHUB_TOKEN }}