diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef4cafb..9256e00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/scripts/get_version.sh b/scripts/get_version.sh index de4ff9d..1799f47 100755 --- a/scripts/get_version.sh +++ b/scripts/get_version.sh @@ -4,4 +4,6 @@ BASE=`dirname $0` cd $BASE/.. -./gradlew printVersion -q \ No newline at end of file +VERSION="$(./gradlew printVersion -q)" + +echo $VERSION \ No newline at end of file