-
Notifications
You must be signed in to change notification settings - Fork 0
fix(api-docs/cpp): silence actionlint SC2016 on find globs #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,7 +155,7 @@ jobs: | |
| # TypeScript template. | ||
| working-directory: ${{ env.OUTPUT_DIR }} | ||
| run: | | ||
| find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do | ||
| find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do | ||
| sed -E -i \ | ||
| 's|\]\(([A-Za-z0-9][^)/]*\.md(#[^)]*)?)\)|](./\1)|g' \ | ||
| "$f" | ||
|
|
@@ -170,7 +170,7 @@ jobs: | |
| # observable behavior. | ||
| working-directory: ${{ env.OUTPUT_DIR }} | ||
| run: | | ||
| find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do | ||
| find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do | ||
| sed -i -E 's/ `inline`//g' "$f" | ||
| done | ||
|
|
||
|
|
@@ -182,7 +182,7 @@ jobs: | |
| # delete legitimate cross-references later in the document. | ||
| working-directory: ${{ env.OUTPUT_DIR }} | ||
| run: | | ||
| find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do | ||
| find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do | ||
| python3 - "$f" <<'PY' | ||
| import pathlib, re, sys | ||
| p = pathlib.Path(sys.argv[1]) | ||
|
|
@@ -223,7 +223,7 @@ jobs: | |
| # so escape-all is the safer rule here. | ||
| working-directory: ${{ env.OUTPUT_DIR }} | ||
| run: | | ||
| find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do | ||
| find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do | ||
| awk ' | ||
| BEGIN { in_fence = 0 } | ||
| /^```/ { in_fence = !in_fence; print; next } | ||
|
|
@@ -334,7 +334,7 @@ jobs: | |
| # extension) so the docs repo can splice them into docs.json. | ||
| working-directory: ${{ env.OUTPUT_DIR }} | ||
| run: | | ||
| find . -name '*.md' -type f \ | ||
| find . -name "*.md" -type f \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with the other find . -maxdepth 2 -type f -name "*.md" -print0 \References
|
||
| | sed 's|^\./||; s|\.md$||' \ | ||
| | sort > _pages.txt | ||
| jq -R -s 'split("\n") | map(select(length > 0))' _pages.txt > _pages.json | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change correctly silences the linter warning. Since these files serve as source-of-truth templates, consider applying this same quote-style change to the other templates in this directory (e.g.,
api-docs.python.yml,api-docs.typescript.yml) to ensure consistency. Additionally, ensure these templates configurecancel-in-progress: truefor synchronization workflows and include the relative package path in source code links to ensure correct 'View source' resolution in monorepos.References