diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml index 0ad9907c..cb15fd73 100644 --- a/.github/workflows/java-ci.yml +++ b/.github/workflows/java-ci.yml @@ -10,9 +10,9 @@ jobs: - name: Checkout latest code uses: actions/checkout@v2 - - name: Get Hash - id: hash - run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_HASH + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - name: Set up JDK 16 uses: actions/setup-java@v2 @@ -33,5 +33,5 @@ jobs: - uses: actions/upload-artifact@v2 with: - name: eco-dev-${{ env.hash }} + name: eco-dev-${{ steps.vars.outputs.sha_short }} path: build/libs \ No newline at end of file