Skip to content

Commit

Permalink
Don’t require a prefix v in version name tags
Browse files Browse the repository at this point in the history
  • Loading branch information
chimbori committed Dec 10, 2024
1 parent bede248 commit 564f7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aar-github-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Matches "v1.2.3"
- "[0-9]+.[0-9]+.[0-9]+" # Matches "1.2.3"

jobs:
build:
Expand All @@ -26,7 +26,7 @@ jobs:
uses: gradle/actions/wrapper-validation@v3

- name: Compute Variables
# Remove prefixes from tag, leaving only the X.Y.Z version string. ("refs/tags/v111.22.33" --> "111.22.33")
# Remove prefixes from tag, leaving only the X.Y.Z version string. ("refs/tags/111.22.33" --> "111.22.33")
run: |
VERSION_NAME=$(echo "${{ github.ref }}" | sed -E 's|^[^0-9]*([0-9]+\.[0-9]+\.[0-9]+).*$|\1|')
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
Expand Down

0 comments on commit 564f7ff

Please sign in to comment.