Skip to content

Commit 28efb3b

Browse files
committed
try template values again
1 parent fa4f2b6 commit 28efb3b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.drone.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
---
2-
31
kind: pipeline
42
type: docker
53
name: on-droneci-complete
64
clone:
75
disable: true
86
steps:
7+
- name: print-build-status
8+
image: alpine
9+
commands:
10+
- echo "DRONE_BUILD_STATUS=$DRONE_BUILD_STATUS"
11+
912
- name: trigger-github-actions
1013
image: plugins/webhook
1114
settings:
@@ -15,12 +18,13 @@ steps:
1518
secrets:
1619
- source: on-droneci-complete-github-token
1720
target: webhook_password
21+
content_type: application/json
1822
template: |
1923
{
2024
"ref": "{{ build.branch }}",
2125
"inputs": {
2226
"github_sha": "{{ build.commit }}",
23-
"drone_build_status": {{ freq .build.status "success" }}
27+
"drone_build_status": "{{ build.status }}",
2428
}
2529
}
2630
debug: true

0 commit comments

Comments
 (0)