From 125bab3fd5aa8bf2f52498a3152931f608d14c5c Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sat, 18 May 2024 17:29:15 -0300 Subject: [PATCH] Move if statement to build job --- .github/workflows/release-prs.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-prs.yaml b/.github/workflows/release-prs.yaml index 11598dc..280600c 100644 --- a/.github/workflows/release-prs.yaml +++ b/.github/workflows/release-prs.yaml @@ -10,12 +10,7 @@ on: jobs: build: - uses: ./.github/workflows/build.yaml - - release: - needs: build - - concurrency: release + # We want to build and upload artifacts only if the `upload to s3` label is applied # Only intra-repo PRs are allowed to have PR artifacts uploaded # We only want to trigger once the upload once in the case the upload label is added, not when any label is added if: | @@ -24,6 +19,11 @@ jobs: (github.event.action == 'labeled' && github.event.label.name == 'upload to s3') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'upload to s3')) ) + uses: ./.github/workflows/build.yaml + + release: + needs: build + concurrency: release runs-on: ubuntu-latest permissions: id-token: write # In order to request a JWT for AWS auth