|
7 | 7 | description: "equivalent to github.sha in an ordinary workflow"
|
8 | 8 | required: true
|
9 | 9 | success:
|
10 |
| - description: "did drone tests pass or did they fail?" |
| 10 | + description: "did drone tests pass or fail?" |
11 | 11 | required: true
|
12 | 12 | type: boolean
|
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - on-droneci-complete: |
| 15 | + # This one should pass |
| 16 | + cms-followup: |
16 | 17 | runs-on: ubuntu-24.04
|
| 18 | + # uses: ./.github/workflows/cms-followup.yml |
17 | 19 | steps:
|
18 | 20 | - run: |
|
19 |
| - echo "Triggered by Drone commit: ${{ inputs.github_sha }}" |
20 |
| -
|
21 |
| - k8s-followup-thing: |
22 |
| - runs-on: ubuntu-24.04 |
23 |
| - needs: on-droneci-complete |
24 |
| - steps: |
25 |
| - # probably a uses: invocation IRL |
26 |
| - - name: invoke workflow |
27 |
| - run: | |
28 |
| - echo "This step should fail" |
29 |
| - false |
| 21 | + echo "Triggered by Drone commit: ${{ inputs.github_sha }} on branch ${{ github.ref }}" |
| 22 | + echo "This step should succeed" |
| 23 | + true |
30 | 24 |
|
| 25 | +# Need to do this manually or the result won't be visible within the PR |
31 | 26 | - uses: actions/github-script@v7
|
32 | 27 | with:
|
33 | 28 | script: |
|
34 | 29 | await github.rest.repos.createCommitStatus({
|
35 |
| - context: 'K8S Followup Thing', |
| 30 | + context: 'CMS Followup', |
36 | 31 | owner: context.repo.owner,
|
37 | 32 | repo: context.repo.repo,
|
38 | 33 | sha: '${{ inputs.github_sha }}',
|
39 | 34 | state: '${{ job.status == 'success' && "success" || "failure" }}',
|
40 | 35 | })
|
41 | 36 |
|
42 |
| - cms-followup-thing: |
| 37 | + # This one should fail |
| 38 | + k8s-followup: |
43 | 39 | runs-on: ubuntu-24.04
|
44 |
| - needs: on-droneci-complete |
| 40 | + # uses: ./.github/workflows/k8s-followup.yml |
45 | 41 | steps:
|
46 | 42 | - run: |
|
47 |
| - echo "This step should succeed" |
48 |
| - true |
| 43 | + echo "Triggered by Drone commit: ${{ inputs.github_sha }} on branch ${{ github.ref }}" |
| 44 | + echo "This step should fail" |
| 45 | + false |
49 | 46 |
|
| 47 | + # Need to do this manually or the result won't be visible within the PR |
50 | 48 | - uses: actions/github-script@v7
|
51 | 49 | with:
|
52 | 50 | script: |
|
53 | 51 | await github.rest.repos.createCommitStatus({
|
54 |
| - context: 'CMS Followup Thing', |
| 52 | + context: 'K8S Followup', |
55 | 53 | owner: context.repo.owner,
|
56 | 54 | repo: context.repo.repo,
|
57 | 55 | sha: '${{ inputs.github_sha }}',
|
|
0 commit comments