Skip to content

Commit 5f2a269

Browse files
committed
fix(build): add github token to phar action
1 parent cf3fd2f commit 5f2a269

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/php-package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
shell: bash
4545
- name: Download build package
4646
run: gh release download v${{ env.PHAR_TOOL_VERSION }} -R=${{ env.PHAR_TOOL_REPOSITORY }}
47-
shell: bash
47+
env:
48+
GH_TOKEN: ${{ github.token }}
4849
- name: Build package
4950
run: |
5051
chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
5152
./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2json
52-
shell: bash

.github/workflows/release-please.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@ jobs:
4545
run: |
4646
chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
4747
./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2json
48+
env:
49+
GH_TOKEN: ${{ github.token }}
4850
- name: Upload package
49-
run: gh release upload ${{ needs.release-please.outputs.tag }} mysql2json
51+
run: gh release upload ${{ needs.release-please.outputs.tag }} mysql2json
52+
env:
53+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)