File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments