Set vars from inside job

This commit is contained in:
maximo tejeda 2024-08-17 09:30:26 -04:00
parent 4e8595a509
commit 480982a23b

View File

@ -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