Skip to content

Commit

Permalink
ci: fix upload environment condition (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksted authored Nov 22, 2024
1 parent 6c3a069 commit f364533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
outPath: pwa.tar.gz

- name: Upload build to production
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && ${{ inputs.environment }} == 'production')
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'production')
id: upload-production
uses: JantHsueh/[email protected]
with:
Expand All @@ -102,7 +102,7 @@ jobs:
fileForms: '{ "file": "pwa.tar.gz" }'

- name: Upload build to staging
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && ${{ inputs.environment }} == 'staging')
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'staging')
id: upload-staging
uses: JantHsueh/[email protected]
with:
Expand Down

0 comments on commit f364533

Please sign in to comment.