Skip to content

chore: build package updates #7

chore: build package updates

chore: build package updates #7

Workflow file for this run

name: Trigger Workflows
on:
workflow_dispatch:
push:
branches:
- master
jobs:
parse-log:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Commit Description
id: get-commit-info
run: |
updates_matrix="$(git log -1 --pretty=%b | awk '/^Update/,0 { if ($0 ~ /^ /) { sub(/:$/, "", $1); print $1 } }' | jq -R -s -c 'split("\n") | map(select(. != ""))')"
echo "updated='${updates_matrix}'" >> $GITHUB_ENV
trigger-actions:
needs: parse-log
if: env.updated != '[]'

Check failure on line 24 in .github/workflows/trigger.yml

View workflow run for this annotation

GitHub Actions / Trigger Workflows

Invalid workflow file

The workflow is not valid. .github/workflows/trigger.yml (Line: 24, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.updated != '[]'
runs-on: ubuntu-latest
steps:
- name: Trigger Child Workflows
run: |
for package in $(echo "${updated}" | jq -r '.[]'); do
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-d "{\"event_type\": \"${package}\"}" \
https://api.github.com/repos/${{ github.repository }}/dispatches
done