Skip to content

Commit

Permalink
Fixed syntax errors in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 17, 2024
1 parent db2eb9e commit 56dfac0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Output release kind
id: release-kind
run: |
echo "release-kind=$RELEASE_KIND" >> $GITHUB_OUTPUT
echo "release-kind=${{ env.RELEASE_KIND }}" >> $GITHUB_OUTPUT
- name: Get Pull Request Number
id: pr
Expand All @@ -69,16 +69,14 @@ jobs:
echo "pull_request_number=${PR_NUMBER}" >> $GITHUB_OUTPUT
echo "::notice::PR_NUMBER is ${PR_NUMBER}"
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
# env:
# GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Bump version
id: bump-version
shell: bash
run: |
case "$RELEASE_KIND" in
no-release)
echo "PACKAGE=false" >> $GITHUB_ENV
major|minor|patch)
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
Expand All @@ -90,9 +88,11 @@ jobs:
bump-my-version bump --allow-dirty --verbose --no-commit --no-tag "$RELEASE_KIND"
echo "PACKAGE=true" >> $GITHUB_ENV
;;
*)
echo "PACKAGE=false" >> $GITHUB_ENV
esac
echo "package=PACKAGE" >> $GITHUB_OUTPUT
echo "package=${{ env.PACKAGE }}" >> $GITHUB_OUTPUT
- name: Package and upload artifacts
if: ${{ env.PACKAGE == 'true' }}
Expand Down

0 comments on commit 56dfac0

Please sign in to comment.