Skip to content

Commit

Permalink
move env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Warner committed Apr 29, 2024
1 parent b43da43 commit c4a3959
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/push-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit c4a3959

Please sign in to comment.