Skip to content

Commit

Permalink
unattach gradle in get_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Jul 22, 2022
1 parent 5a5cf1c commit 33bca98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ jobs:
version: ${{ steps.version_get.outputs.version }}
steps:
- uses: actions/checkout@v2
- name: 🗝️ update permissions
run: chmod u+x gradlew
- name: ⚙️ get version
id: version_get
run: echo "::set-output name=version::$(scripts/get_version.sh)"
- name: ⚙️ Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: 🗝️ Update permissions
run: chmod u+x gradlew
- name: 🌍 Fetch dependencies
run: ./gradlew --refresh-dependencies
- name: ⚙️ Get version
id: version_get
run: echo "::set-output name=version::$(scripts/get_version.sh)"
- name: ⚙️ Print version
run: 'echo "version: ${{ steps.version_get.outputs.version }}"'
- name: 🏗️ Compile wiki-changes
run: ./gradlew shadowJar
- name: ⚙️ Move compiled jar
Expand Down
4 changes: 3 additions & 1 deletion scripts/get_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ BASE=`dirname $0`

cd $BASE/..

./gradlew printVersion -q
VERSION="$(./gradlew printVersion -q)"

echo $VERSION

0 comments on commit 33bca98

Please sign in to comment.