From 480982a23b9bf74f661f9179aa99db28e1573e62 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Sat, 17 Aug 2024 09:30:26 -0400 Subject: [PATCH] Set vars from inside job --- .github/workflows/ci.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7afaa40..109eb54 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: set env variable - run: echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: echo "$(git rev-parse --short HEAD)" >> ${{ vars.GIT_SHA_SHORT }} process: runs-on: ubuntu-latest steps: @@ -42,7 +42,7 @@ jobs: - name: upload artifact uses: actions/upload-artifact@v3 with: - name: version-${{ env.GIT_SHA_SHORT }}.zip + name: version-${{ vars.GIT_SHA_SHORT }}.zip path: version download-artifact: needs: [create-artifact] @@ -51,11 +51,11 @@ jobs: - name: download artifact uses: actions/download-artifact@v3 with: - name: version-${{ env.GIT_SHA_SHORT }}.zip + name: version-${{ vars.GIT_SHA_SHORT }}.zip - name: list files run: | ls ${{ github.workspace }} - echo $GIT_SHA_SHORT + echo ${{ vars.GIT_SHA_SHORT }} show-report-urlo: needs: [download-artifact] runs-on: ubuntu-latest