diff --git a/.github/workflows/push-automation.yml b/.github/workflows/push-automation.yml index bd451b40..02ca81b8 100644 --- a/.github/workflows/push-automation.yml +++ b/.github/workflows/push-automation.yml @@ -11,6 +11,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -24,13 +27,9 @@ jobs: - uses: actions/checkout@v4 - name: Zip artifact for deployment - env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} run: zip rngai-${{ env.BRANCH_NAME }}.zip ./* -r - name: Upload artifact for deployment job - env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} uses: actions/upload-artifact@v2 with: name: rngai