File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed
Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,20 @@ runs:
118118 mkdir -p "$HOME" &&
119119 echo '${{ inputs.priv-gpg-key }}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
120120 git config --global gpg.program "$RUNNER_TEMP/build-extra/gnupg-with-gpgkey.sh"
121+ - uses : actions/create-github-app-token@v1
122+ id : pacman-repo-token
123+ with :
124+ app-id : ${{ inputs.app-id }}
125+ private-key : ${{ inputs.private-key }}
126+ owner : ${{ inputs.owner }}
127+ repositories : pacman-repo
121128 - name : Upload Pacman packages
122129 shell : bash
123130 env :
124131 GPG_OPTIONS : " --batch --yes --no-tty --list-options no-show-photos --verify-options no-show-photos --pinentry-mode loopback"
125132 GPGKEY : ${{ inputs.gpg-key }}
126133 azure_blobs_token : ${{ inputs.azure-blobs-token }}
134+ GITHUB_TOKEN : ${{ steps.pacman-repo-token.outputs.token }}
127135 run : |
128136 "$RUNNER_TEMP"/build-extra/pacman-helper.sh quick_add pkg-x86_64/*.tar.* pkg-i686/*.tar.* pkg-aarch64/*.tar.*
129137 - name : update check-run
Original file line number Diff line number Diff line change @@ -306,22 +306,22 @@ jobs:
306306 name : artifacts
307307 path : artifacts
308308
309- - name : Prepare home directory for deploying to the Pacman repository
310- if : env.BUILD_ONLY != 'true' && env.AZURE_BLOBS_TOKEN != ''
311- env :
312- AZURE_BLOBS_TOKEN : ${{secrets.AZURE_BLOBS_TOKEN}}
313- shell : bash
314- run : |
315- echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
316- echo "$AZURE_BLOBS_TOKEN" >"$HOME"/.azure-blobs-token
309+ - uses : actions/create-github-app-token@v1
310+ id : pacman-repo-token
311+ with :
312+ app-id : ${{ secrets.GH_APP_ID }}
313+ private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
314+ owner : ${{ github.repository_owner }}
315+ repositories : pacman-repo
317316
318317 - name : ${{ env.BUILD_ONLY == 'true' && 'Test-deploy' || 'Deploy' }} Pacman packages
319- if : env.BUILD_ONLY == 'true' || env.AZURE_BLOBS_TOKEN != ''
318+ if : env.BUILD_ONLY == 'true' || env.azure_blobs_token != ''
320319 shell : bash
321320 env :
322321 GPGKEY : ${{secrets.GPGKEY}}
323322 PACMANDRYRUN : ${{env.BUILD_ONLY}}
324- AZURE_BLOBS_TOKEN : ${{secrets.AZURE_BLOBS_TOKEN}}
323+ azure_blobs_token : ${{secrets.AZURE_BLOBS_TOKEN}}
324+ GITHUB_TOKEN : ${{ steps.pacman-repo-token.outputs.token }}
325325 run : /usr/src/build-extra/pacman-helper.sh quick_add artifacts/*
326326
327327 - name : Clean up temporary files
You can’t perform that action at this time.
0 commit comments