Skip to content

Commit

Permalink
fix push-templates-tag grep pattern (#2313)
Browse files Browse the repository at this point in the history
I messed this one up the first time; we should convert e.g. refs/tags/v2.3.0 to
spin/templates/v2.3, not spin/templates/refs/tags/v2.3.

Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej authored Mar 1, 2024
1 parent 16198bd commit 4b7ac39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ jobs:
- name: Set the tag to spin/templates/v*
shell: bash
run: |
spin_tag=$(echo "${{ github.ref }}" | grep -Eo "refs/tags/v[0-9.]+")
spin_tag=$(echo "${{ github.ref }}" | grep -Eo "v[0-9.]+")
IFS=. read -r major minor patch <<< "${spin_tag}"
echo "TEMPLATE_TAG=spin/templates/$major.$minor" >> $GITHUB_ENV
Expand Down

0 comments on commit 4b7ac39

Please sign in to comment.