Skip to content

Commit

Permalink
[fix] Tagging regex (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
erin-at-work authored Apr 28, 2022
1 parent 271ca80 commit 940e96f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: tag
run: |
COMMIT_MSG="${{ github.event.head_commit.message }}"
TAG=$(echo $COMMIT_MSG | sed -e '2~4d' -e 's/\(^v[[:digit:]].[[:digit:]].[[:digit:]]\).*$/\1/' )
TAG=$(echo $COMMIT_MSG | sed -e '1!d' -e 's/\(^v[[:digit:]]*.[[:digit:]]*.[[:digit:]]*\).*$/\1/' )
echo "PARSED_TAG=$TAG" >> $GITHUB_ENV
- name: Tag
Expand All @@ -38,4 +38,4 @@ jobs:
repo: context.repo.repo,
ref: "refs/tags/${{ env.PARSED_TAG }}",
sha: context.sha
})
})

0 comments on commit 940e96f

Please sign in to comment.