| 1 |
name: Trigger build and push of powa-collector image |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
|
| 6 |
tags-ignore: |
| 7 |
- 'debian/*' |
| 8 |
|
| 9 |
env: |
| 10 |
TARGET_REPO: "powa-podman" |
| 11 |
EVENT_TYPE: "powa-collector" |
| 12 |
|
| 13 |
jobs: |
| 14 |
trigger_build: |
| 15 |
name: Trigger build and push of powa-collector in powa-podman repo |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- name: Trigger the powa-collector repository dispatch |
| 19 |
run: | |
| 20 |
# Set variables |
| 21 |
org="${{ github.repository_owner }}" |
| 22 |
repo="${{ env.TARGET_REPO }}" |
| 23 |
event_type="${{ env.EVENT_TYPE }}" |
| 24 |
|
| 25 |
curl -L \ |
| 26 |
-X POST \ |
| 27 |
-H "Accept: application/vnd.github+json" \ |
| 28 |
-H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}" \ |
| 29 |
-H "X-GitHub-Api-Version: 2022-11-28" \ |
| 30 |
https://api.github.com/repos/${org}/${repo}/dispatches \ |
| 31 |
-d "{\"event_type\": \"${event_type}\"}" |