Skip to content

Commit cb87763

Browse files
committed
fix: skip environment approval gate for trusted users on workflow_dispatch
1 parent 013c83f commit cb87763

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ jobs:
258258
- name: init-optimization
259259
script: end_to_end_test_init_optimization.py
260260
expected_improvement: 10
261-
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
261+
environment: ${{ ((github.event_name == 'workflow_dispatch' && github.actor != 'misrasaurabh1' && github.actor != 'KRRT7') || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
262262
runs-on: ubuntu-latest
263263
env:
264264
CODEFLASH_AIS_SERVER: prod
@@ -345,7 +345,7 @@ jobs:
345345
script: end_to_end_test_js_ts_class.py
346346
js_project_dir: code_to_optimize/js/code_to_optimize_ts
347347
expected_improvement: 30
348-
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
348+
environment: ${{ ((github.event_name == 'workflow_dispatch' && github.actor != 'misrasaurabh1' && github.actor != 'KRRT7') || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
349349
runs-on: ubuntu-latest
350350
env:
351351
CODEFLASH_AIS_SERVER: prod
@@ -425,7 +425,7 @@ jobs:
425425
script: end_to_end_test_java_void_optimization.py
426426
expected_improvement: 70
427427
remove_git: true
428-
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
428+
environment: ${{ ((github.event_name == 'workflow_dispatch' && github.actor != 'misrasaurabh1' && github.actor != 'KRRT7') || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
429429
runs-on: ubuntu-latest
430430
env:
431431
CODEFLASH_AIS_SERVER: prod

0 commit comments

Comments
 (0)