Skip to content

Commit 7e16525

Browse files
committed
use link to the latest version of 'Checks' document instead of HEAD
1 parent 43f5ada commit 7e16525

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Features:
1717
- **Other several useful checks**; [glob syntax][filter-pattern-doc] validation, dependencies check for `needs:`,
1818
runner label validation, cron syntax validation, ...
1919

20-
See [the full list](docs/checks.md) of checks done by actionlint.
20+
See [the full list][checks] of checks done by actionlint.
2121

2222
<img src="https://github.com/rhysd/ss/blob/master/actionlint/main.gif?raw=true" alt="actionlint reports 7 errors" width="806" height="492"/>
2323

@@ -118,7 +118,7 @@ See [the usage document](docs/usage.md) for more details.
118118

119119
## Documents
120120

121-
- [Checks](docs/checks.md): Full list of all checks done by actionlint with example inputs, outputs, and playground links.
121+
- [Checks][checks]: Full list of all checks done by actionlint with example inputs, outputs, and playground links.
122122
- [Installation](docs/install.md): Installation instructions. Prebuilt binaries, a Docker image, building from
123123
source, a download script (for CI), supports by several package managers are available.
124124
- [Usage](docs/usage.md): How to use `actionlint` command locally or on GitHub Actions, the online playground, an official Docker
@@ -151,3 +151,4 @@ actionlint is distributed under [the MIT license](./LICENSE.txt).
151151
[script-injection-doc]: https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections
152152
[issue-form]: https://github.com/rhysd/actionlint/issues/new
153153
[releases]: https://github.com/rhysd/actionlint/releases
154+
[checks]: https://github.com/rhysd/actionlint/blob/v1.7.3/docs/checks.md

scripts/bump-version.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ usage_doc='./docs/usage.md'
4747
tag="v${version}"
4848
job_url='https://github.com/rhysd/actionlint/actions/workflows/release.yaml'
4949
playground_html='./playground/index.html'
50+
readme_doc='./README.md'
5051

5152
echo "Bumping up version to ${version} (tag: ${tag})"
5253

@@ -67,6 +68,9 @@ sed_ "\
6768
s/\/blob\/v[0-9]+\.[0-9]+\.[0-9]+\/docs\/checks\.md/\/blob\/v${version}\/docs\/checks\.md/; \
6869
" "$playground_html"
6970

71+
echo "Updating $readme_doc"
72+
sed_ "s/\/rhysd\/actionlint\/blob\/v[0-9]+\.[0-9]+\.[0-9]+\//\/rhysd\/actionlint\/blob\/v${version}\//g" "$readme_doc"
73+
7074
echo 'Creating a version bump commit and a version tag'
7175
git add "$pre_commit_hook" "$usage_doc" "$playground_html"
7276
git commit -m "bump up version to ${tag}"

0 commit comments

Comments
 (0)