Skip to content

Commit

Permalink
Try different approach for ED actions and lightweight checks on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-montalvo committed Jun 14, 2024
1 parent 2dfbe1d commit ab12d70
Show file tree
Hide file tree
Showing 13 changed files with 262 additions and 519 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/accname.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: accname ED
on:
push:
branches:
- 'main'
paths:
- 'common/**'
- 'accname/**'

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Dispatch to accname repo
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{secrets.ARIA_EDITOR_DRAFTS}}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/daniel-montalvo/accname/actions/workflows/build-from-monorepo.yaml/dispatches \
-d '{"ref":"gh-pages"}'
update-accname:
runs-on: ubuntu-latest
steps:
- name: Checkout monorepo
uses: actions/checkout@v4
with:
ref: main
path: aria
sparse-checkout: |
accname
common
- uses: w3c/spec-prod@v2
with:
TOOLCHAIN: respec
SOURCE: aria/accname/index.html
DESTINATION: aria/accname/index.html
ARTIFACT_NAME: accname
- name: Checkout accname repo
uses: actions/checkout@v4
with:
repository: daniel-montalvo/accname
ref: gh-pages
path: accname
token: ${{ secrets.ARIA_EDITOR_DRAFTS }}
- uses: actions/download-artifact@v4
with:
name: accname
path: accname/
# - name: Copy files
# run: |
# cp -r aria/common accname
# cp -r aria/accname .
- 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"
git push origin gh-pages
working-directory: accname
64 changes: 0 additions & 64 deletions .github/workflows/build-copy-and-publish-accname.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-copy-and-publish-core-aam.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-copy-and-publish-dpub-aam.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-copy-and-publish-dpub-aria.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-copy-and-publish-graphics-aam.yml

This file was deleted.

Loading

0 comments on commit ab12d70

Please sign in to comment.