generated from just-the-docs/just-the-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 17
CI: Update GitHub actions #131
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9b84922
ci: update GitHub actions
anaxite ddd4687
ci: replace `dorny/paths-filter` action
anaxite ae4a8ae
ci: rewrite SVG optimizer action
anaxite 9ab05ef
ci: Make dependabot check GitHub actions monthly
anaxite 90f627c
ci: Remove unnecessary `fetch-depth` property from checkout actions
anaxite 6974b84
ci: Set bash as the default shell for actions that use it
anaxite 51f2a33
chore (config): consolidate `markdown` config block
anaxite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,47 @@ | ||
| name: Optimize new SVG images | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| jobs: | ||
| svgs: | ||
| name: Optimize SVGs | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| # Give the default GITHUB_TOKEN write permission to commit and push the | ||
| # added or changed files to the repository. | ||
| contents: write | ||
| steps: | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0 | ||
|
|
||
| - name: Check for changed SVGs | ||
| uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0 | ||
| id: changed-files | ||
| with: | ||
| safe_output: false # set to false because we are using an environment variable to store the output and avoid command injection. | ||
| files: | | ||
| **/*.svg | ||
|
|
||
| - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 #v6.0.0 | ||
| if: steps.changed-files.outputs.any_changed == 'true' | ||
|
|
||
| - name: Optimize files | ||
| if: steps.changed-files.outputs.any_changed == 'true' | ||
| env: | ||
| ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | ||
| run: | | ||
| npm install -g svgo | ||
| for file in ${ALL_CHANGED_FILES}; do | ||
| npx svgo --multipass "$file" --output "$file" | ||
| done | ||
|
|
||
| - name: Commit optimized SVGs | ||
| if: steps.changed-files.outputs.any_changed == 'true' | ||
| uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 #v7.0.0 | ||
| with: | ||
| commit_message: "auto: optimize SVGs" |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -11,13 +11,13 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0 | ||
|
|
||
| - name: Set up dependencies | ||
| run: npm install -g mdx2vast | ||
|
|
||
| - name: Run Vale | ||
| uses: errata-ai/[email protected] | ||
| uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c #v2.1.1 | ||
| with: | ||
| files: "docs/" | ||
| fail_on_error: false | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.