Skip to content

Commit

Permalink
[v0.1.2]: test
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsJacobsen committed Feb 5, 2024
1 parent 7af291e commit 34a2814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:

- name: Get version from commit message
id: version
run: echo "::set-output name=version::$(git log -1 --pretty=%B | grep -oP '\[v([0-9]+\.[0-9]+\.[0-9]+)\]')"
run: echo "::set-output name=version::$(git log -1 --pretty=%B | grep -oP 'v([0-9]+\.[0-9]+\.[0-9]+)')"

- name: Validate version format
run: |
if [[ ! "${{ steps.version.outputs.version }}" =~ ^\[v([0-9]+\.[0-9]+\.[0-9]+)\]$ ]]; then
if [[ ! "${{ steps.version.outputs.version }}" =~ ^v([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
echo "Invalid version format. Aborting the workflow."
exit 1
fi
Expand Down

0 comments on commit 34a2814

Please sign in to comment.