Skip to content

Update actions

Update actions #1

Workflow file for this run

name: notify-child
on:
push:
branches:
- 'main'
paths:
- 'common/**'
- 'core-aam/**'
jobs:

Check failure on line 9 in .github/workflows/core-aam.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/core-aam.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
dispatch:
runs-on: ubuntu-latest
steps:
- name: Dispatch to core-aam repo
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{secrets.PAT_TOKEN}}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/daniel-montalvo/core-aam/actions/workflows/build-from-monorepo.yaml/dispatches \
-d '{"ref":"gh-pages"}'
update-core-aam:
runs-on: ubuntu-latest
steps:
- name: Checkout monorepo
uses: actions/checkout@v4
with:
ref: main
path: aria
sparse-checkout: |
core-aam
common
- name: Checkout core-aam repo
uses: actions/checkout@v4
with:
repository: daniel-montalvo/core-aam
ref: gh-pages
path: core-aam
token: ${{ secrets.PAT_TOKEN }}
- name: Copy files
run: |
cp -r aria/common core-aam
cp -r aria/core-aam .
- name: Push new files to child repo
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add common .
git commit -m "Sync from monorepo"
git push origin gh-pages
working-directory: core-aam