Update .github/workflows/release-prs.yml
This commit is contained in:
parent
6f8baf4345
commit
bbaeca10a8
8
.github/workflows/release-prs.yml
vendored
8
.github/workflows/release-prs.yml
vendored
|
@ -17,7 +17,13 @@ jobs:
|
||||||
|
|
||||||
concurrency: release
|
concurrency: release
|
||||||
# Only intra-repo PRs are allowed to have PR artifacts uploaded
|
# Only intra-repo PRs are allowed to have PR artifacts uploaded
|
||||||
if: github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-actions-cache' && contains(github.event.pull_request.labels.*.name, 'upload to s3')
|
# We only want to trigger once the upload once in the case the upload label is added, not when any label is added
|
||||||
|
if: |
|
||||||
|
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-actions-cache'
|
||||||
|
&& (
|
||||||
|
(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'))
|
||||||
|
)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # In order to request a JWT for AWS auth
|
id-token: write # In order to request a JWT for AWS auth
|
||||||
|
|
Loading…
Reference in a new issue