File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 27
27
jobs :
28
28
setup-env :
29
29
runs-on : ubuntu-latest
30
+ permissions :
31
+ contents : write
30
32
outputs :
31
33
app_version : ${{ steps.set_outputs.outputs.app_version }}
32
34
tag_name : ${{ steps.set_outputs.outputs.tag_name }}
41
43
date +"%y.%m" > VERSION
42
44
echo "APP_VERSION=$(cat VERSION)" >> $GITHUB_ENV
43
45
44
- - uses : stefanzweifel/git-auto-commit-action@v5
45
- with :
46
- commit_message : Set version file
47
- skip_checkout : true
48
- skip_fetch : true
49
- file_pattern : ' VERSION'
50
-
51
46
- if : ${{ (github.event.inputs.is_nightly == 'true') || (github.event.inputs.is_nightly == '') }}
52
47
name : Setup options for nightly
53
48
run : |
56
51
echo "PRERELEASE=--prerelease" >> $GITHUB_ENV
57
52
58
53
- if : ${{ github.event.inputs.is_nightly == 'false' }}
54
+ uses : stefanzweifel/git-auto-commit-action@v5
55
+ with :
56
+ commit_message : Set version file
57
+ skip_checkout : true
58
+ skip_fetch : true
59
+ file_pattern : ' VERSION'
59
60
name : Setup options for a new release
60
61
run : |
61
62
echo "TAG_NAME=v${{ env.APP_VERSION }}" >> $GITHUB_ENV
79
80
publish :
80
81
needs : [upload-artifacts, setup-env]
81
82
runs-on : ubuntu-latest
82
-
83
83
permissions :
84
84
contents : write
85
85
You can’t perform that action at this time.
0 commit comments