Skip to content

Commit 142b0b4

Browse files
authored
try folded block scalar notation
* try fix with env variable * added folded block notation to other yaml files
1 parent c1302e1 commit 142b0b4

8 files changed

+64
-56
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ 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-
github.event_name == 'workflow_dispatch' ||
20-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
21-
github.event.pull_request.user.login != 'misrasaurabh1' &&
22-
github.event.pull_request.user.login != 'KRRT7'
23-
? 'external-trusted-contributors' : ''
24-
}}
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+
}}
2526
if: ${{ github.actor != 'codeflash-ai[bot]' }}
2627
runs-on: ubuntu-latest
2728
env:

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ 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-
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-
}}
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+
}}
2122
runs-on: ubuntu-latest
2223
env:
2324
CODEFLASH_AIS_SERVER: prod

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ 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-
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-
}}
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+
}}
2122
runs-on: ubuntu-latest
2223
env:
2324
CODEFLASH_AIS_SERVER: prod

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ 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-
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-
}}
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+
}}
2122
runs-on: ubuntu-latest
2223
env:
2324
CODEFLASH_AIS_SERVER: prod

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ 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-
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-
}}
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+
}}
2122
runs-on: ubuntu-latest
2223
env:
2324
CODEFLASH_AIS_SERVER: prod

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ 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-
github.event_name == 'workflow_dispatch' ||
15-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
16-
github.event.pull_request.user.login != 'misrasaurabh1' &&
17-
github.event.pull_request.user.login != 'KRRT7'
18-
? 'external-trusted-contributors': ''
19-
}}
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+
}}
2021
runs-on: ubuntu-latest
2122
env:
2223
CODEFLASH_AIS_SERVER: prod

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ 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-
github.event_name == 'workflow_dispatch' ||
15-
contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') &&
16-
github.event.pull_request.user.login != 'misrasaurabh1' &&
17-
github.event.pull_request.user.login != 'KRRT7'
18-
? 'external-trusted-contributors': ''
19-
}}
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+
}}
2021
runs-on: ubuntu-latest
2122
env:
2223
CODEFLASH_AIS_SERVER: prod

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ 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-
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-
}}
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+
}}
2122
runs-on: ubuntu-latest
2223
env:
2324
CODEFLASH_AIS_SERVER: prod

0 commit comments

Comments
 (0)