Skip to content

Commit b969f2a

Browse files
committed
fix gh token
1 parent 1833fab commit b969f2a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/bump-build-version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
description: 'Generated build version number'
1313
value: ${{ jobs.generate-build-version.outputs.build-version }}
1414
commit-hash:
15-
description: "Commit hash with build version bumped"
15+
description: 'Commit hash with build version bumped'
1616
value: ${{ jobs.bump-version.outputs.commit-hash }}
1717

1818
jobs:
@@ -24,14 +24,15 @@ jobs:
2424
bump-version:
2525
runs-on: ubuntu-latest
2626
needs: generate-build-version
27+
permissions:
28+
contents: write
2729
outputs:
2830
commit-hash: ${{ steps.bump-build-version.outputs.commit-hash }}
2931
steps:
3032
- uses: actions/checkout@v3
3133
with:
3234
fetch-depth: 0
3335
ref: ${{ inputs.ref }}
34-
token: ${{ secrets.PR_TOKEN }}
3536
- name: Bump build version
3637
id: bump-build-version
3738
shell: bash
@@ -50,4 +51,3 @@ jobs:
5051
git commit -m "[skip ci] Bump version number to ${BUILD_NUMBER}"
5152
git push origin HEAD:$GH_REF_NAME --force-with-lease
5253
echo "commit-hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
53-

0 commit comments

Comments
 (0)