Skip to content

Commit 378d88b

Browse files
authored
WF changes to remove condition (#145)
1 parent 142b0b4 commit 378d88b

8 files changed

+14
-64
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ jobs:
1515
optimize:
1616
name: Optimize new Python code
1717
# Dynamically determine if environment is needed only when workflow files change and contributor is external
18-
environment: >-
19-
${{
20-
github.event_name == 'workflow_dispatch' ||
21-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
22-
github.event.pull_request.user.login != 'misrasaurabh1' &&
23-
github.event.pull_request.user.login != 'KRRT7'
24-
? 'external-trusted-contributors': ''
25-
}}
18+
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' || '' }}
2619
if: ${{ github.actor != 'codeflash-ai[bot]' }}
2720
runs-on: ubuntu-latest
2821
env:

.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ on:
1111
jobs:
1212
bubble-sort-optimization-pytest-no-git:
1313
# Dynamically determine if environment is needed only when workflow files change and contributor is external
14-
environment: >-
15-
${{
16-
github.event_name == 'workflow_dispatch' ||
17-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
18-
github.event.pull_request.user.login != 'misrasaurabh1' &&
19-
github.event.pull_request.user.login != 'KRRT7'
20-
? 'external-trusted-contributors': ''
21-
}}
14+
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' || '' }}
15+
2216
runs-on: ubuntu-latest
2317
env:
2418
CODEFLASH_AIS_SERVER: prod

.github/workflows/end-to-end-test-bubblesort-unittest.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ on:
1111
jobs:
1212
bubble-sort-optimization-unittest:
1313
# Dynamically determine if environment is needed only when workflow files change and contributor is external
14-
environment: >-
15-
${{
16-
github.event_name == 'workflow_dispatch' ||
17-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
18-
github.event.pull_request.user.login != 'misrasaurabh1' &&
19-
github.event.pull_request.user.login != 'KRRT7'
20-
? 'external-trusted-contributors': ''
21-
}}
14+
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' || '' }}
15+
2216
runs-on: ubuntu-latest
2317
env:
2418
CODEFLASH_AIS_SERVER: prod

.github/workflows/end-to-end-test-coverage.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ on:
1111
jobs:
1212
end-to-end-test-coverage:
1313
# Dynamically determine if environment is needed only when workflow files change and contributor is external
14-
environment: >-
15-
${{
16-
github.event_name == 'workflow_dispatch' ||
17-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
18-
github.event.pull_request.user.login != 'misrasaurabh1' &&
19-
github.event.pull_request.user.login != 'KRRT7'
20-
? 'external-trusted-contributors': ''
21-
}}
14+
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' || '' }}
15+
2216
runs-on: ubuntu-latest
2317
env:
2418
CODEFLASH_AIS_SERVER: prod

.github/workflows/end-to-end-test-futurehouse.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ on:
1111
jobs:
1212
futurehouse-structure:
1313
# Dynamically determine if environment is needed only when workflow files change and contributor is external
14-
environment: >-
15-
${{
16-
github.event_name == 'workflow_dispatch' ||
17-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
18-
github.event.pull_request.user.login != 'misrasaurabh1' &&
19-
github.event.pull_request.user.login != 'KRRT7'
20-
? 'external-trusted-contributors': ''
21-
}}
14+
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' || '' }}
15+
2216
runs-on: ubuntu-latest
2317
env:
2418
CODEFLASH_AIS_SERVER: prod

.github/workflows/end-to-end-test-init-optim.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ on:
1010
jobs:
1111
init-optimization:
1212
# Dynamically determine if environment is needed only when workflow files change and contributor is external
13-
environment: >-
14-
${{
15-
github.event_name == 'workflow_dispatch' ||
16-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
17-
github.event.pull_request.user.login != 'misrasaurabh1' &&
18-
github.event.pull_request.user.login != 'KRRT7'
19-
? 'external-trusted-contributors': ''
20-
}}
13+
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' || '' }}
14+
2115
runs-on: ubuntu-latest
2216
env:
2317
CODEFLASH_AIS_SERVER: prod

.github/workflows/end-to-end-test-tracer-replay.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ on:
1010
jobs:
1111
tracer-replay:
1212
# Dynamically determine if environment is needed only when workflow files change and contributor is external
13-
environment: >-
14-
${{
15-
github.event_name == 'workflow_dispatch' ||
16-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
17-
github.event.pull_request.user.login != 'misrasaurabh1' &&
18-
github.event.pull_request.user.login != 'KRRT7'
19-
? 'external-trusted-contributors': ''
20-
}}
13+
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' || '' }}
14+
2115
runs-on: ubuntu-latest
2216
env:
2317
CODEFLASH_AIS_SERVER: prod

.github/workflows/end-to-end-topological-sort-test.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@ on:
1111
jobs:
1212
topological-sort-optimization:
1313
# Dynamically determine if environment is needed only when workflow files change and contributor is external
14-
environment: >-
15-
${{
16-
github.event_name == 'workflow_dispatch' ||
17-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
18-
github.event.pull_request.user.login != 'misrasaurabh1' &&
19-
github.event.pull_request.user.login != 'KRRT7'
20-
? 'external-trusted-contributors': ''
21-
}}
14+
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' || '' }}
2215
runs-on: ubuntu-latest
2316
env:
2417
CODEFLASH_AIS_SERVER: prod

0 commit comments

Comments
 (0)