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:
118
118
mkdir -p "$HOME" &&
119
119
echo '${{ inputs.priv-gpg-key }}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
120
120
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
121
128
- name : Upload Pacman packages
122
129
shell : bash
123
130
env :
124
131
GPG_OPTIONS : " --batch --yes --no-tty --list-options no-show-photos --verify-options no-show-photos --pinentry-mode loopback"
125
132
GPGKEY : ${{ inputs.gpg-key }}
126
133
azure_blobs_token : ${{ inputs.azure-blobs-token }}
134
+ GITHUB_TOKEN : ${{ steps.pacman-repo-token.outputs.token }}
127
135
run : |
128
136
"$RUNNER_TEMP"/build-extra/pacman-helper.sh quick_add pkg-x86_64/*.tar.* pkg-i686/*.tar.* pkg-aarch64/*.tar.*
129
137
- name : update check-run
Original file line number Diff line number Diff line change @@ -306,22 +306,22 @@ jobs:
306
306
name : artifacts
307
307
path : artifacts
308
308
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
317
316
318
317
- 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 != ''
320
319
shell : bash
321
320
env :
322
321
GPGKEY : ${{secrets.GPGKEY}}
323
322
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 }}
325
325
run : /usr/src/build-extra/pacman-helper.sh quick_add artifacts/*
326
326
327
327
- name : Clean up temporary files
You can’t perform that action at this time.
0 commit comments