File tree Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Original file line number Diff line number Diff line change 4
4
new_release_version :
5
5
description : ' The new version string'
6
6
required : true
7
- commit_changes :
8
- description : ' Whether to commit the changes or not'
9
- required : false
10
- default : " false"
11
- github_token :
12
- description : ' GitHub token'
13
- required : true
14
7
runs :
15
8
using : " composite"
16
9
steps :
25
18
pip install meson
26
19
meson rewrite kwargs set project // version ${{ inputs.new_release_version }}
27
20
shell : bash
28
-
29
- - name : Commit and push Version Changes
30
- if : ${{ inputs.commit_changes == 'true' }}
31
- shell : bash
32
- run : |
33
- git config --global user.email "[email protected] "
34
- git config --global user.name "GitHub Action"
35
- git add Source/System/GameVersion.h meson.build
36
- git commit -m "Update version" || echo "No changes to commit"
37
- git push
38
- env :
39
- GITHUB_TOKEN : ${{ inputs.github_token }}
40
-
Original file line number Diff line number Diff line change 50
50
uses : ./.github/actions/set_version
51
51
with :
52
52
new_release_version : ${{ github.event.inputs.new_release_version}}
53
- commit_changes : true
54
- github_token : ${{ secrets.GITHUB_TOKEN }}
55
53
56
54
- name : Bundle release assets
57
55
uses : ./.github/actions/bundle_release
69
67
env :
70
68
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
69
70
+ - name : Commit and push Version Changes
71
+ shell : bash
72
+ run : |
73
+ git config --global user.email "[email protected] "
74
+ git config --global user.name "GitHub Action"
75
+ git add Source/System/GameVersion.h meson.build
76
+ git commit -m "Release v${{ inputs.new_release_version }}" || echo "No changes to commit"
77
+ git push
78
+ env :
79
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
80
+
72
81
- name : Update latest tag
73
82
run : |
74
83
curl -X PATCH \
You can’t perform that action at this time.
0 commit comments