Skip to content

core-aam ED

core-aam ED #15

Workflow file for this run

name: core-aam ED
on:
push:
branches:
- 'main'
paths:
- 'common/**'
- 'core-aam/**'
workflow_dispatch:
jobs:
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/w3c/core-aam/actions/workflows/build-from-monorepo.yaml/dispatches \
-d '{"ref":"gh-pages"}'
update-core-aam:
name: Update Editors Draft and Publish to TR
runs-on: ubuntu-latest
steps:
- name: Checkout monorepo
uses: actions/checkout@v4
with:
ref: main
path: aria
sparse-checkout: |
core-aam
common
- name: Copy common
run: |
mkdir aria/core-aam/common
cp -r aria/common/** aria/core-aam/common/
sed -i 's|\.\./common|common|g' aria/core-aam/index.html
- uses: w3c/spec-prod@v2
with:
TOOLCHAIN: respec
SOURCE: aria/core-aam/index.html
DESTINATION: aria/core-aam/index.html
# W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_CORE_AAM }}
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html
W3C_BUILD_OVERRIDE: |
specStatus: CRD
ARTIFACT_NAME: core-aam
- run: |
pwd
ls -R
- 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 }}
- run: |
pwd
ls -R
- uses: actions/download-artifact@v4
with:
name: core-aam
# path: core-aam/
- run: |
pwd
ls -R
- name: Copy files
run: |
cp -r aria.gh/aria/core-aam/ core-aam
ls -r core-aam
- run: |
pwd
ls -R
- 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 .
git commit -m "Sync from monorepo {{ GITHUB_SHA }}"
git push origin gh-pages
working-directory: core-aam