Skip to content

Commit

Permalink
This is not a tagged commit
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-tom committed Aug 26, 2024
1 parent 7acdc73 commit 42dacdd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/create-version-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ jobs:
)
echo "is_tagged_commit=$(($is_tagged_commit))" >> $GITHUB_OUTPUT
- name: Debug
env:
IS_TAGGED_COMMIT: ${{ steps.tag_check.outputs.is_tagged_commit }}
run: echo "TAGGED? $IS_TAGGED_COMMIT"
- name: Create the tag
if: steps.tag_check.outputs.is_tagged_commit == 1
id: get-version
run: |
new_version=$( \
echo "${{ github.event.head_commit.message }}" \
| cut -d " " -f 5" \
)
echo "tag_version=v${new_version}" >> $GITHUB_OUTPUT
- run: echo "${{ steps.get-version.tag_version }}"
if: steps.tag_check.outputs.is_tagged_commit == 1

0 comments on commit 42dacdd

Please sign in to comment.