-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into aria-hidden-focused-expectations
- Loading branch information
Showing
40 changed files
with
2,954 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
spec:aria: | ||
- changed-files: | ||
- any-glob-to-any-file: 'index.html' | ||
|
||
spec:accname: | ||
- changed-files: | ||
- any-glob-to-any-file: 'accname/**' | ||
|
||
spec:core-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'core-aam/**' | ||
|
||
spec:dpub-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'dpub-aam/**' | ||
|
||
spec:dpub-aria: | ||
- changed-files: | ||
- any-glob-to-any-file: 'dpub-aria/**' | ||
|
||
spec:graphics-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'graphics-aam/**' | ||
|
||
spec:graphics-aria: | ||
- changed-files: | ||
- any-glob-to-any-file: 'graphics-aria/**' | ||
|
||
spec:html-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'html-aam/**' | ||
|
||
spec:svg-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'svg-aam/**' | ||
|
||
spec:mathml-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'mathml-aam/**' | ||
|
||
spec:pdf-aam: | ||
- changed-files: | ||
- any-glob-to-any-file: 'pdf-aam/**' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 # Uploads repository content to the runner | ||
- uses: actions/labeler@v5 | ||
with: | ||
sync-labels: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: pdf-aam ED | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'common/**' | ||
- 'pdf-aam/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to pdf-aam repo | ||
run: | | ||
curl -L -X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{secrets.W3CGRUNTBOT_TOKEN}}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/w3c/pdf-aam/actions/workflows/build-from-monorepo.yaml/dispatches \ | ||
-d '{"ref":"gh-pages"}' | ||
update-pdf-aam: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout monorepo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
path: aria | ||
sparse-checkout: | | ||
pdf-aam | ||
common | ||
- name: Copy common | ||
run: | | ||
mkdir aria/pdf-aam/common | ||
cp -r aria/common/** aria/pdf-aam/common/ | ||
sed -i 's|\.\./common|common|g' aria/pdf-aam/index.html | ||
- uses: w3c/spec-prod@v2 | ||
with: | ||
TOOLCHAIN: respec | ||
SOURCE: aria/pdf-aam/index.html | ||
DESTINATION: aria/pdf-aam/index.html | ||
# W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_pdf_aam }} | ||
# W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html | ||
# W3C_BUILD_OVERRIDE: | | ||
# specStatus: WD | ||
ARTIFACT_NAME: pdf-aam | ||
- name: Checkout pdf-aam repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: w3c/pdf-aam | ||
ref: gh-pages | ||
path: pdf-aam | ||
token: ${{ secrets.W3CGRUNTBOT_TOKEN }} | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: pdf-aam | ||
- name: Copy files | ||
run: | | ||
cp -r aria.common/aria/pdf-aam/** pdf-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 . | ||
git commit -m "ED update" | ||
git push origin gh-pages | ||
working-directory: pdf-aam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,23 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
# This is important to fetch the changes to the previous commit | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
fetch-depth: 0 | ||
|
||
- name: Check if PR is from a fork | ||
id: check_fork | ||
run: echo "::set-output name=is_fork::${{ github.event.pull_request.head.repo.fork }}" | ||
|
||
- name: Prettify code | ||
id: prettify | ||
uses: creyD/[email protected] | ||
with: | ||
dry: true | ||
prettier_options: --write **/index.html --print-width 200 | ||
commit_message: "chore: prettier" | ||
continue-on-error: true | ||
|
||
- name: Handle commit failure | ||
if: ${{ steps.prettify.outcome == 'failure' && steps.check_fork.outputs.is_fork == 'true' }} | ||
run: echo "Please run prettier locally" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"printWidth": 200 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.