mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
small commit hash as a gradlew environment variable
This commit is contained in:
parent
3e7b44102c
commit
d4bb82dc87
1 changed files with 6 additions and 0 deletions
6
.github/workflows/gradle.yml
vendored
6
.github/workflows/gradle.yml
vendored
|
|
@ -44,8 +44,14 @@ jobs:
|
||||||
|
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
|
- name: Get small commit hash
|
||||||
|
run: echo "small_commit_hash=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build with Gradle Wrapper
|
- name: Build with Gradle Wrapper
|
||||||
run: ./gradlew build --parallel
|
run: ./gradlew build --parallel
|
||||||
|
env:
|
||||||
|
SMALL_COMMIT_HASH: ${{ env.small_commit_hash }}
|
||||||
|
|
||||||
# only submit dependency on push
|
# only submit dependency on push
|
||||||
- name: Generate and submit dependency graph
|
- name: Generate and submit dependency graph
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue