|
1 | 1 | name: Notify Consumers |
2 | 2 |
|
| 3 | +# workflow_run fires on EVERY completion of Main (any branch, any outcome), |
| 4 | +# so this workflow only actually runs for: |
| 5 | +# - a successful Main build on `main` (the commit-tagged image was just |
| 6 | +# published, e.g. a PR merged to main) -> triggered_by=merge, or |
| 7 | +# - a manual workflow_dispatch (re-trigger a stuck/skipped pin update) |
| 8 | +# -> triggered_by=manual |
| 9 | +# A failed Main run, or a successful run on a PR/feature branch, is |
| 10 | +# skipped: no image was published for consumers to pin to. |
| 11 | + |
3 | 12 | # To manually re-trigger a consumer pin update, run: |
4 | 13 | # `gh workflow run "Notify Consumers" --ref main` |
5 | 14 |
|
|
20 | 29 | determine-inputs: |
21 | 30 | name: "Determine trigger inputs" |
22 | 31 | runs-on: ubuntu-24.04 |
23 | | - # workflow_run fires on EVERY completion of Main (any branch, any outcome), |
24 | | - # so this job only actually runs for: |
25 | | - # - a successful Main build on `main` (the commit-tagged image was just |
26 | | - # published, e.g. a PR merged to main) -> triggered_by=merge, or |
27 | | - # - a manual workflow_dispatch (re-trigger a stuck/skipped pin update) |
28 | | - # -> triggered_by=manual |
29 | | - # A failed Main run, or a successful run on a PR/feature branch, is |
30 | | - # skipped: no image was published for consumers to pin to. |
31 | 32 | if: >- |
32 | 33 | github.event_name == 'workflow_dispatch' || |
33 | 34 | (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main') |
|
63 | 64 | # get a cross-repo dd-octo-sts grant provisioned for images-rb to |
64 | 65 | # dispatch into it, and make sure the consumer repo actually has a |
65 | 66 | # workflow listening for the images-updated repository_dispatch |
66 | | - # event. Until all of that exists, adding a matrix entry here will |
67 | | - # just fail on every run. |
| 67 | + # event. |
68 | 68 | - repo: DataDog/dd-trace-rb |
69 | 69 | policy: images-rb.notify-dd-trace-rb |
70 | 70 | steps: |
|
0 commit comments