Skip to content

Commit 2ad0fac

Browse files
committed
Stupid environment variables
Signed-off-by: Gabriel Harris-Rouquette <[email protected]>
1 parent 73b05b3 commit 2ad0fac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-and-deploy.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ jobs:
3030
- name: run number with offset
3131
run: echo "BUILD_NUMBER=$(($GITHUB_RUN_NUMBER+93))" >> $GITHUB_ENV
3232
- name: Build with Gradle
33-
run: ./gradlew --refresh-dependencies -s clean build
33+
run: |
34+
echo "GIT_COMMIT=$GITHUB_SHA" >> $GITHUB_ENV
35+
echo "GIT_BRANCH=$GITHUB_REF" >> $GITHUB_ENV
36+
./gradlew --refresh-dependencies -s clean build
3437
env:
3538
CI_SYSTEM: Github Actions
36-
GIT_COMMIT: ${{ GITHUB_SHA }}
37-
GIT_BRANCH: ${{ GITHUB_REF }}
3839
- name: Add artifacts to build
3940
uses: actions/upload-artifact@v2
4041
with:

0 commit comments

Comments
 (0)