Skip to content

Commit 56dfac0

Browse files
committed
Fixed syntax errors in scripts
1 parent db2eb9e commit 56dfac0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Output release kind
6161
id: release-kind
6262
run: |
63-
echo "release-kind=$RELEASE_KIND" >> $GITHUB_OUTPUT
63+
echo "release-kind=${{ env.RELEASE_KIND }}" >> $GITHUB_OUTPUT
6464
6565
- name: Get Pull Request Number
6666
id: pr
@@ -69,16 +69,14 @@ jobs:
6969
echo "pull_request_number=${PR_NUMBER}" >> $GITHUB_OUTPUT
7070
echo "::notice::PR_NUMBER is ${PR_NUMBER}"
7171
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
72-
env:
73-
GITHUB_TOKEN: ${{ secrets.PAT }}
72+
# env:
73+
# GITHUB_TOKEN: ${{ secrets.PAT }}
7474

7575
- name: Bump version
7676
id: bump-version
7777
shell: bash
7878
run: |
7979
case "$RELEASE_KIND" in
80-
no-release)
81-
echo "PACKAGE=false" >> $GITHUB_ENV
8280
major|minor|patch)
8381
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
8482
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
@@ -90,9 +88,11 @@ jobs:
9088
bump-my-version bump --allow-dirty --verbose --no-commit --no-tag "$RELEASE_KIND"
9189
echo "PACKAGE=true" >> $GITHUB_ENV
9290
;;
91+
*)
92+
echo "PACKAGE=false" >> $GITHUB_ENV
9393
esac
9494
95-
echo "package=PACKAGE" >> $GITHUB_OUTPUT
95+
echo "package=${{ env.PACKAGE }}" >> $GITHUB_OUTPUT
9696
9797
- name: Package and upload artifacts
9898
if: ${{ env.PACKAGE == 'true' }}

0 commit comments

Comments
 (0)