Skip to content

Automatically trigger build of powa-archivist-git #4

Automatically trigger build of powa-archivist-git

Automatically trigger build of powa-archivist-git #4

name: Trigger build and push of powa-archivist-git image
on:
push:
branches: [master, trigger_git_image]
env:
TARGET_REPO: "powa-podman"
EVENT_TYPE: "powa-archivist-git"
jobs:
trigger_build:
runs_on: ubuntu-latest

Check failure on line 13 in .github/workflows/powa_archivist_git.yml

View workflow run for this annotation

GitHub Actions / Trigger build and push of powa-archivist-git image

Invalid workflow file

The workflow is not valid. .github/workflows/powa_archivist_git.yml (Line: 13, Col: 5): Unexpected value 'runs_on' .github/workflows/powa_archivist_git.yml (Line: 16, Col: 14): Unrecognized named-value: 'secret'. Located at position 1 within expression: secret.TOKEN
steps:
- name: Trigger the powa-archivist-git repository dispatch
run: |
# Set variables
org="${{ github.repository_owner }}"
repo="${{ env.TARGET_REPO }}"
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/${org}/${repo}/dispatches \
-d "{\"event_type\":\"${event_type}\"}"