File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
-
3
2
kind : pipeline
4
3
type : docker
5
4
name : on-droneci-complete
6
5
clone :
7
6
disable : true
8
7
steps :
8
+ - name : print-build-status
9
+ image : alpine
10
+ commands :
11
+ - echo "DRONE_BUILD_STATUS=$DRONE_BUILD_STATUS"
12
+
9
13
- name : trigger-github-actions
10
14
image : plugins/webhook
11
15
settings :
@@ -15,12 +19,13 @@ steps:
15
19
secrets :
16
20
- source : on-droneci-complete-github-token
17
21
target : webhook_password
22
+ content_type : application/json
18
23
template : |
19
24
{
20
25
"ref": "{{ build.branch }}",
21
26
"inputs": {
22
27
"github_sha": "{{ build.commit }}",
23
- "drone_succeeded ": {{ eq build.status 'success' }}
28
+ "drone_build_status ": " {{ build.status }}",
24
29
}
25
30
}
26
31
debug : true
@@ -32,6 +37,6 @@ trigger:
32
37
- pull_request
33
38
---
34
39
kind : signature
35
- hmac : 64f80f45bacfea906a0a36dedfb08b3f5c8394d2aacfb182e6104300965e2bb5
40
+ hmac : 52eb4a39f30b611ecc75ad2636322ff338d904ede0f4ae6f09b6d033cbcf6aee
36
41
37
42
...
Original file line number Diff line number Diff line change 6
6
github_sha :
7
7
description : " equivalent to github.sha in an ordinary workflow"
8
8
required : true
9
- drone_succeeded :
10
- description : " did drone tests pass or fail?"
9
+ drone_build_status :
11
10
required : true
12
- type : boolean
11
+ type : choice
12
+ options :
13
+ - success
14
+ - failure
13
15
14
16
permissions :
15
17
statuses : write
18
20
# This one should pass
19
21
cms-followup :
20
22
runs-on : ubuntu-24.04
21
- if : ${{ inputs.drone_succeeded }}
23
+ if : ${{ inputs.drone_build_status == 'success' }}
22
24
# uses: ./.github/workflows/cms-followup.yml
23
25
steps :
24
26
- run : |
43
45
# This one should fail
44
46
k8s-followup :
45
47
runs-on : ubuntu-24.04
46
- if : ${{ inputs.drone_succeeded }}
48
+ if : ${{ inputs.drone_build_status == 'success' }}
47
49
# uses: ./.github/workflows/k8s-followup.yml
48
50
steps :
49
51
- run : |
You can’t perform that action at this time.
0 commit comments