File tree Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -8,33 +8,25 @@ permissions:
8
8
pull-requests : read
9
9
10
10
jobs :
11
+ pr_deplolyment_test :
12
+ if : ${{ github.event.label.name == 'pr-deployment' }}
13
+ timeout-minutes : 10
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Wait for PR deployment completion
18
+ run : bash ./.github/workflows/scripts/pr_deployment_test.sh wait_for_pr_deployment ${{ github.event.number }} ${{ secrets.PR_DEPLOY_CLUSTER_HOSTNAME }}
19
+ shell : bash
11
20
pr_testing :
12
21
if : ${{ github.event.label.name == 'pr-deployment' }}
13
22
runs-on : ubuntu-latest
14
23
permissions :
15
24
pull-requests : write
16
- needs : deployment_ready
25
+ needs : pr_deplolyment_test
17
26
steps :
18
27
- uses : actions/checkout@v4
19
28
- name : Trigger tests on PR deployment
20
29
id : test_pr
21
30
run : |
22
- TEST_RESULTS=$(bash ./.github/workflows/scripts/pr_deployment_test.sh invoke_pr_test 81148901 ${{ secrets.TESTING_TRIGGER_PAT }} ${{ github.event.number }})
23
- echo "TEST_RESULTS=${TEST_RESULTS}" >> $GITHUB_OUTPUT
31
+ bash ./.github/workflows/scripts/pr_deployment_test.sh invoke_pr_test 81148901 ${{ secrets.TESTING_TRIGGER_PAT }} ${{ github.event.number }}
24
32
shell : bash
25
- - name : report test results
26
- uses : mshick/add-pr-comment@v2
27
- with :
28
- message : |
29
- ${{ steps.test_pr.outputs.TEST_RESULTS }}
30
-
31
-
32
- deployment_ready :
33
- if : ${{ github.event.label.name == 'pr-deployment' }}
34
- timeout-minutes : 10
35
- runs-on : ubuntu-latest
36
- steps :
37
- - uses : actions/checkout@v4
38
- - name : Wait for PR deployment completion
39
- run : bash ./.github/workflows/scripts/pr_deployment_test.sh wait_for_pr_deployment ${{ github.event.number }} ${{ secrets.PR_DEPLOY_CLUSTER_HOSTNAME }}
40
- shell : bash
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ invoke_pr_test() {
34
34
run_status=$( echo " $run_info " | jq -r ' .status' )
35
35
if [[ $run_status == " completed" ]]; then
36
36
conclusion=$( echo " $run_info " | jq -r ' .conclusion' )
37
- echo " Tests execution https://api. github.com/repos /ansible/ansible-wisdom-testing/actions/runs/$RUN_ID completed with conclusion: $conclusion "
37
+ echo " Tests execution https://github.com/ansible/ansible-wisdom-testing/actions/runs/$RUN_ID completed with conclusion: $conclusion "
38
38
if [[ $conclusion == " success" ]]; then
39
39
exit 0
40
40
else
@@ -74,4 +74,4 @@ wait_for_pr_deployment() {
74
74
echo " Deployment probably is broken. Please check"
75
75
}
76
76
77
- $1 $2 $3 $4 $5 $6 $7
77
+ $*
You can’t perform that action at this time.
0 commit comments