Skip to content

Commit

Permalink
fix(github-actions): remove redundant LATEST_TAG assignment in tag_af…
Browse files Browse the repository at this point in the history
…ter_testThe LATEST_TAG variable is no longer explicitly assigned within the

determine_next_version step, simplifying the workflow and avoiding
potential issues with variable scope and redundancy.
  • Loading branch information
actions-user committed Jul 10, 2024
1 parent 5025c90 commit 068379a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tag_after_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:
- name: Determine next version
id: determine_next_version
run: |
if [[ -z "${{ steps.check_tags.outputs.LATEST_TAG }}" ]]; then
LATEST_TAG=${{ steps.check_tags.outputs.LATEST_TAG }}
if [[ -z "$LATEST_TAG" ]]; then
NEXT_TAG="v0.0.1"
else
VERSION_ARRAY=(${{ steps.check_tags.outputs.LATEST_TAG }#.v}~'.')
Expand All @@ -89,7 +90,7 @@ jobs:
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_OUTPUT
- name: Create release
if: ${{ steps.determine_next_version.outputs.NEXT_TAG != '' }}
if: ${{ steps.determine_next_version.outputs.NEXT_TAG }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.determine_next_version.outputs.NEXT_TAG }}
Expand Down

0 comments on commit 068379a

Please sign in to comment.