Skip to content

Commit a8baaaf

Browse files
committed
trying to get the version tag.
1 parent a884ebc commit a8baaaf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/android-ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535

36-
- name: 🔢 Set version tag
37-
id: vars
38-
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
39-
4036
# https://github.com/actions/setup-java
4137
- name: ☕ Set up AWS Corretto JDK 17
4238
uses: actions/setup-java@v3
@@ -48,15 +44,18 @@ jobs:
4844
- name: 🚚 Get latest code
4945
uses: actions/checkout@v3
5046

47+
# GITHUB_REF may be "master".
48+
- name: 🔢 Set version tag
49+
id: vars
50+
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
51+
5152
- name: 🔢 Grant execute permission for gradlew
5253
run: chmod +x gradlew
5354

5455
- name: 🔨 Build with Gradle
5556
env:
5657
VERSION_TAG: ${{ steps.vars.outputs.tag }}
57-
run: |
58-
echo $VERSION_TAG
59-
./gradlew :library:assembleRelease
58+
run: ./gradlew :library:assembleRelease
6059

6160
# https://github.com/actions/upload-artifact
6261
- name: 📦 Retain Artifacts (Release AAR)

0 commit comments

Comments
 (0)