Skip to content

Commit 17a4f38

Browse files
authored
Force bash shell when updating PR comment. (#942)
This ensures that the command doesn't fail on Windows or if there is any other default shell.
1 parent fd6c5c6 commit 17a4f38

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/integration_tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ jobs:
199199
echo "::set-output name=tvos_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k tvos_device -t ${mobile_test_on} )"
200200
- name: Update PR label and comment
201201
if: steps.set_outputs.outputs.pr_number
202+
shell: bash
202203
run: |
203204
#Add the in-progress label and remove any previous labels.
204205
python scripts/gha/it_workflow.py --stage start \
@@ -384,8 +385,8 @@ jobs:
384385
path: test_results
385386
name: log-artifact
386387
- name: Update PR label and comment
387-
shell: bash
388388
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
389+
shell: bash
389390
run: |
390391
pushd ${{env.GCS_UPLOAD_DIR}}
391392
python scripts/gha/it_workflow.py --stage progress \
@@ -515,6 +516,7 @@ jobs:
515516
name: log-artifact
516517
- name: Update PR label and comment
517518
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
519+
shell: bash
518520
run: |
519521
python scripts/gha/it_workflow.py --stage progress \
520522
--token ${{github.token}} \
@@ -634,6 +636,7 @@ jobs:
634636
name: log-artifact
635637
- name: Update PR label and comment
636638
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
639+
shell: bash
637640
run: |
638641
python scripts/gha/it_workflow.py --stage progress \
639642
--token ${{github.token}} \
@@ -752,6 +755,7 @@ jobs:
752755
name: log-artifact
753756
- name: Update PR label and comment
754757
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
758+
shell: bash
755759
run: |
756760
python scripts/gha/it_workflow.py --stage progress \
757761
--token ${{github.token}} \
@@ -843,6 +847,7 @@ jobs:
843847
name: log-artifact
844848
- name: Update PR label and comment
845849
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
850+
shell: bash
846851
run: |
847852
python scripts/gha/it_workflow.py --stage progress \
848853
--token ${{github.token}} \
@@ -948,6 +953,7 @@ jobs:
948953
name: log-artifact
949954
- name: Update PR label and comment
950955
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
956+
shell: bash
951957
run: |
952958
python scripts/gha/it_workflow.py --stage progress \
953959
--token ${{github.token}} \
@@ -1053,6 +1059,7 @@ jobs:
10531059
name: log-artifact
10541060
- name: Update PR label and comment
10551061
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
1062+
shell: bash
10561063
run: |
10571064
python scripts/gha/it_workflow.py --stage progress \
10581065
--token ${{github.token}} \
@@ -1136,6 +1143,7 @@ jobs:
11361143
name: log-artifact
11371144
- name: Update PR label and comment
11381145
if: ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
1146+
shell: bash
11391147
run: |
11401148
python scripts/gha/it_workflow.py --stage progress \
11411149
--token ${{github.token}} \
@@ -1182,6 +1190,7 @@ jobs:
11821190
private_key: ${{ secrets.WORKFLOW_TRIGGER_APP_PRIVATE_KEY }}
11831191
- name: Update PR label and comment
11841192
if: ${{ needs.check_and_prepare.outputs.pr_number }}
1193+
shell: bash
11851194
run: |
11861195
python scripts/gha/it_workflow.py --stage end \
11871196
--token ${{github.token}} \

0 commit comments

Comments
 (0)