Skip to content

Commit 4db4211

Browse files
committed
Merge branch 'master' into gregor/callbacks/03-execution-integration
2 parents e6bf00c + 1f507a3 commit 4db4211

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ jobs:
295295
runs-on: buildjet-16vcpu-ubuntu-2204
296296
env:
297297
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
298+
# Set the environment based on the author association of the pull request.
299+
# This is used to determine whether the build should be run in an internal or external environment.
300+
# If the author is a member or collaborator, use the internal environment; otherwise, use the external environment that will require approval
301+
environment: ${{ (github.event_name == 'merge_group' || (github.event.pull_request && (github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR'))) && 'internal-ci' || 'external-ci' }}
298302
steps:
299303
- name: Checkout repo
300304
uses: actions/checkout@v4

0 commit comments

Comments
 (0)