Skip to content

Commit dd7ceea

Browse files
committed
fix release action
1 parent d05048f commit dd7ceea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ env:
2727
jobs:
2828
setup-env:
2929
runs-on: ubuntu-latest
30+
permissions:
31+
contents: write
3032
outputs:
3133
app_version: ${{ steps.set_outputs.outputs.app_version }}
3234
tag_name: ${{ steps.set_outputs.outputs.tag_name }}
@@ -41,13 +43,6 @@ jobs:
4143
date +"%y.%m" > VERSION
4244
echo "APP_VERSION=$(cat VERSION)" >> $GITHUB_ENV
4345
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-
5146
- if: ${{ (github.event.inputs.is_nightly == 'true') || (github.event.inputs.is_nightly == '') }}
5247
name: Setup options for nightly
5348
run: |
@@ -56,6 +51,12 @@ jobs:
5651
echo "PRERELEASE=--prerelease" >> $GITHUB_ENV
5752
5853
- 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'
5960
name: Setup options for a new release
6061
run: |
6162
echo "TAG_NAME=v${{ env.APP_VERSION }}" >> $GITHUB_ENV
@@ -79,7 +80,6 @@ jobs:
7980
publish:
8081
needs: [upload-artifacts, setup-env]
8182
runs-on: ubuntu-latest
82-
8383
permissions:
8484
contents: write
8585

0 commit comments

Comments
 (0)