From f364533e406ccfd802fb2250f6f552b41b62f2f3 Mon Sep 17 00:00:00 2001 From: Kevin Stederoth <43753494+ksted@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:38:36 +0100 Subject: [PATCH] ci: fix upload environment condition (#819) --- .github/workflows/upload.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index b721bf035..ee8817677 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -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/upload-file-action@1.0 with: @@ -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/upload-file-action@1.0 with: