forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into performance-api-guide
* upstream/main: (286 commits) Correct Epsilon property description (mdn#22804) Fix typo in subtle crypto digest (mdn#22802) Alt tag added - reference issue mdn#21616 (mdn#22255) WeakSet: Improve recursive validation example (mdn#22787) New page: validityState.valueMissing (mdn#22691) Edit: <dialog> element (mdn#22786) Update Paint Timing pages (mdn#22771) chore(deps): bump @mdn/yari from 1.27.16 to 1.27.20 (mdn#22791) chore(deps): bump technote-space/get-diff-action from 6.1.1 to 6.1.2 (mdn#22790) Remove WebGLSidebar (mdn#22782) fix indefinite articles usage (mdn#22789) Removed part of sentence that refers to code that appears to have been removed (mdn#22788) Split (Async)?(Generator)?Function class and ctor pages (mdn#22778) Fix interfaces links (mdn#22779) Change "hypertext link" to "hypertext links" (mdn#22780) add hyphenate-limit-chars CSS property (mdn#22747) 22225: Add links to accessibility guides section (mdn#22240) ci(markdownlint): use GitHub API to get changed files (mdn#22773) Document font-palette & @font-palette-values with its descriptors (mdn#22519) fix typo in createImageBitmap api (mdn#22774) ...
- Loading branch information
Showing
1,332 changed files
with
17,136 additions
and
10,016 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 |
---|---|---|
|
@@ -98,7 +98,7 @@ jobs: | |
echo "After..." | ||
du -sh build | ||
- uses: technote-space/[email protected].1 | ||
- uses: technote-space/[email protected].2 | ||
with: | ||
PATTERNS: files/**/*.+(png|jpeg|jpg|gif|svg|webp) | ||
ABSOLUTE: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,19 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: | | ||
**/*.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
run: | | ||
# Use the GitHub API to get the list of changed files | ||
# documenation: https://docs.github.com/rest/commits/commits#compare-two-commits | ||
DIFF_DOCUMENTS=$(gh api repos/{owner}/{repo}/compare/${{ env.BASE_SHA }}...${{ env.HEAD_SHA }} \ | ||
--paginate \ | ||
--jq '.files | .[] | select(.status|IN("added", "modified", "renamed", "copied", "changed")) | .filename') | ||
# filter out files that are not markdown | ||
DIFF_DOCUMENTS=$(echo "${DIFF_DOCUMENTS}" | egrep -i "^files/.*\.md$" | xargs) | ||
echo "DIFF_DOCUMENTS=${DIFF_DOCUMENTS}" >> $GITHUB_ENV | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
|
@@ -34,5 +42,5 @@ jobs: | |
- name: Lint markdown files | ||
run: | | ||
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json" | ||
files_to_lint="${{ steps.changed-files.outputs.all_changed_files }}" | ||
files_to_lint="${{ env.DIFF_DOCUMENTS }}" | ||
yarn markdownlint-cli2 ${files_to_lint} |
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 |
---|---|---|
|
@@ -56,7 +56,7 @@ jobs: | |
# Now, this gets used by the `git diff ...` inside get-diff-action. | ||
git config --global core.quotePath false | ||
- uses: technote-space/[email protected].1 | ||
- uses: technote-space/[email protected].2 | ||
id: git_diff_content | ||
with: | ||
PATTERNS: files/**/*.+(html|md) | ||
|
@@ -143,7 +143,7 @@ jobs: | |
name: build | ||
path: build/ | ||
|
||
- uses: technote-space/[email protected].1 | ||
- uses: technote-space/[email protected].2 | ||
with: | ||
PATTERNS: files/**/*.+(png|jpeg|jpg|gif|svg|webp) | ||
ABSOLUTE: true | ||
|
@@ -157,7 +157,7 @@ jobs: | |
export CONTENT_ROOT=$(pwd)/files | ||
yarn filecheck ${{ env.GIT_DIFF_FILES }} | ||
- uses: technote-space/[email protected].1 | ||
- uses: technote-space/[email protected].2 | ||
id: git_diff_redirects | ||
with: | ||
PATTERNS: files/**/_redirects.txt | ||
|
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.