-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update version in docs & sec pol on release (#1293)
- v2.0.0
- v1.0.0
- f675413
- f27f302
- e228c6f
- e2e34e0
- db99336
- d812c31
- bc79283
- b19a5e9
- b18e3fe
- b0d0543
- aef3303
- a03537d
- a12ca7a
- 2233079
- 948109f
- 519352b
- 81442dd
- 44651dd
- 5349a06
- 4906cfb
- 897f861
- 875bee8
- 817c609
- 737bf78
- 0678f75
- 357ae08
- 211e03f
- 97d48aa
- 94eef94
- 9c12b79
- 9b65c41
- 8fbf47d
- 8efa81a
- 08ca28f
- 7ecd1a3
- 7d3549e
- 5b81e08
- 4ef66a2
- 4ccc757
- 3cb857f
- 2c4d5e6
- 0.0.0
- 00d12c9
- 0d2bed8
Showing
7 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: On Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
bump-versions-in-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "refs/heads/master" | ||
- name: replace version in getting-started docs | ||
run: scripts/update_version_in_docs.bash | ||
- name: replace version in security policy support list | ||
run: scripts/update_version_list_in_security_policy.bash | ||
- name: commit docs version update | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "docs: update version in install instructions & security policy" |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
exec shellcheck -s bash -x \ | ||
asdf.sh \ | ||
completions/*.bash \ | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
exec shfmt -d . |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
version=$(cat version.txt) | ||
sed -i "s/\\(git clone.*--branch \\).*\\(\`.*|\\)/\\1v$version\\2/" docs/guide/getting-started.md |
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
version_major_minor_x="$(cut -f1-2 -d "." version.txt).x" | ||
|
||
# skip if version is already in the list | ||
if ! grep -q "$version_major_minor_x" SECURITY.md; then | ||
# prepend new version to the list | ||
sed -i "s/white_check_mark:/x: /g" SECURITY.md | ||
sed -i "s/^\\(| -* | -* |\\)$/\\1\\n| $version_major_minor_x | :white_check_mark: |/" SECURITY.md | ||
fi |