Skip to content

Commit

Permalink
Use github ref name for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanrashid52 committed Jul 22, 2024
1 parent 1dc8850 commit 5c84f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/android-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Update version number from tag
run: |
# Extract the version components from refs tag (e.g., 1.2.3)
TAG_NAME=${GITHUB_REF#refs/tags/}
TAG_NAME=${{ github.ref_name }}
VERSION=${TAG_NAME#v} # Remove the 'v' prefix if it exists
echo "FLUTTER_BUILD_NAME=$VERSION" >> $GITHUB_ENV
MAJOR=$(echo $VERSION | cut -d. -f1)
Expand Down

0 comments on commit 5c84f02

Please sign in to comment.