Skip to content

Commit

Permalink
fix(gh): account for dash in module names
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Feb 13, 2024
1 parent ebce842 commit 56d6d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
uses: actions/checkout@v3
- id: module
run: |
MODULE=$(echo "${{ github.ref_name }}" | sed '/[a-zA-Z]\+\/[v]\?[0-9.]\+/!{q100}; {s#/[v]\?[0-9.]\+##}' || (echo "unexpected tag version" && exit 1))
MODULE=$(echo "${{ github.ref_name }}" | sed '/[a-zA-Z\-]\+\/[v]\?[0-9.]\+/!{q100}; {s#/[v]\?[0-9.]\+##}' || (echo "unexpected tag version" && exit 1))
echo "module=$MODULE" >> "$GITHUB_OUTPUT"
- id: version
run: |
VERSION=$(echo "${{ github.ref_name }}" | sed '/[a-zA-Z]\+\/[v]\?[0-9.]\+/!{q100}; {s#[a-zA-Z]\+\/[v]\?##}' || (echo "unexpected tag version" && exit 1))
VERSION=$(echo "${{ github.ref_name }}" | sed '/[a-zA-Z\-]\+\/[v]\?[0-9.]\+/!{q100}; {s#[a-zA-Z\-]\+\/[v]\?##}' || (echo "unexpected tag version" && exit 1))
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
release:
Expand Down

0 comments on commit 56d6d7c

Please sign in to comment.