Skip to content

Commit c643859

Browse files
committed
add github token secret to action
1 parent 6b6829a commit c643859

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.github/actions/set_version/action.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
description: 'Whether to commit the changes or not'
99
required: false
1010
default: "false"
11+
github_token:
12+
description: 'GitHub token'
13+
required: true
1114
runs:
1215
using: "composite"
1316
steps:
@@ -33,5 +36,5 @@ runs:
3336
git commit -m "Update version" || echo "No changes to commit"
3437
git push
3538
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GITHUB_TOKEN: ${{ inputs.github_token }}
3740

.github/workflows/meson.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
uses: ./.github/actions/set_version
7171
with:
7272
new_release_version: ${{inputs.new_release_version}}
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
7374

7475
- name: Setup Meson
7576
env:
@@ -144,6 +145,7 @@ jobs:
144145
uses: ./.github/actions/set_version
145146
with:
146147
new_release_version: ${{inputs.new_release_version}}
148+
github_token: ${{ secrets.GITHUB_TOKEN }}
147149

148150
- name: Setup Meson
149151
env:

.github/workflows/msbuild.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
uses: ./.github/actions/set_version
6565
with:
6666
new_release_version: ${{inputs.new_release_version}}
67+
github_token: ${{ secrets.GITHUB_TOKEN }}
6768

6869
- name: Build
6970
working-directory: ${{env.GITHUB_WORKSPACE}}

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
with:
5252
new_release_version: ${{ github.event.inputs.new_release_version}}
5353
commit_changes: true
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
5455

5556
- name: Bundle release assets
5657
uses: ./.github/actions/bundle_release

0 commit comments

Comments
 (0)