Skip to content

Commit 27992ba

Browse files
committed
set drone_build_status as a choice instead of a boolean
1 parent 28efb3b commit 27992ba

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.drone.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
kind: pipeline
23
type: docker
34
name: on-droneci-complete
@@ -36,6 +37,6 @@ trigger:
3637
- pull_request
3738
---
3839
kind: signature
39-
hmac: 4a1be709cc2c667d3227009365aa340a7779a9d2f439c2c7c23f871c945d6ed3
40+
hmac: 52eb4a39f30b611ecc75ad2636322ff338d904ede0f4ae6f09b6d033cbcf6aee
4041

4142
...

.github/workflows/on-droneci-complete.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
github_sha:
77
description: "equivalent to github.sha in an ordinary workflow"
88
required: true
9-
drone_succeeded:
10-
description: "did drone tests pass or fail?"
9+
drone_build_status:
1110
required: true
12-
type: boolean
11+
type: choice
12+
options:
13+
- success
14+
- failure
1315

1416
permissions:
1517
statuses: write
@@ -18,7 +20,7 @@ jobs:
1820
# This one should pass
1921
cms-followup:
2022
runs-on: ubuntu-24.04
21-
if: ${{ inputs.drone_succeeded }}
23+
if: ${{ inputs.drone_build_status == 'success' }}
2224
# uses: ./.github/workflows/cms-followup.yml
2325
steps:
2426
- run: |
@@ -43,7 +45,7 @@ jobs:
4345
# This one should fail
4446
k8s-followup:
4547
runs-on: ubuntu-24.04
46-
if: ${{ inputs.drone_succeeded }}
48+
if: ${{ inputs.drone_build_status == 'success' }}
4749
# uses: ./.github/workflows/k8s-followup.yml
4850
steps:
4951
- run: |

0 commit comments

Comments
 (0)