Automatically trigger build of powa-archivist-git #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger build and push of powa-archivist-git image | ||
on: | ||
push: | ||
branches: [master, trigger_git_image] | ||
emv: | ||
Check failure on line 7 in .github/workflows/powa_archivist_git.yml GitHub Actions / Trigger build and push of powa-archivist-git imageInvalid workflow file
|
||
TARGET_REPO: "powa-podman" | ||
EVENT_TYPE: "powa-archivist-git" | ||
jobs: | ||
trigger_build: | ||
runs_on: ubuntu-latest | ||
steps: | ||
- name: Trigger the powa-archivist-git repository dispatch | ||
run: | | ||
# Set variables | ||
event_type="${{ env.EVENT_TYPE }}" | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secret.TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/${{ github.repository }}/${{ env.TARGET_REPO }}/dispatches \ | ||
-d "{\"event_type\":\"${event_type}\"}" |