Skip to content

Fix powa_archivist.yml #2

Fix powa_archivist.yml

Fix powa_archivist.yml #2

name: Trigger build and push of powa-archivist image

Check failure on line 1 in .github/workflows/powa_archivist.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/powa_archivist.yml

Invalid workflow file

you may only define one of `tags` and `tags-ignore` for a single event
on:
push:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
tags:
- '[0-9]+.[0-9]+.[0-9]+'
tags-ignore:
- 'debian/*'
env:
TARGET_REPO: "powa-podman"
EVENT_TYPE: "powa-archivist"
jobs:
trigger_build:
name: Trigger build and push of powa-archivist in powa-podman repo
runs-on: ubuntu-latest
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 ${{ secrets.DISPATCH_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${org}/${repo}/dispatches \
-d "{\"event_type\": \"${event_type}\"}"