mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
ci: use release-please to bump versions in docs (#1429)
This commit is contained in:
parent
9a8bb47758
commit
fd486dc2ef
23
.github/workflows/on-release.yml
vendored
23
.github/workflows/on-release.yml
vendored
@ -1,23 +0,0 @@
|
||||
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"
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -14,3 +14,6 @@ jobs:
|
||||
with:
|
||||
release-type: simple
|
||||
bump-minor-pre-major: true # remove this to enable breaking changes causing 1.0.0 tag
|
||||
extra-files: |
|
||||
docs/guide/getting-started.md
|
||||
SECURITY.md
|
||||
|
28
SECURITY.md
28
SECURITY.md
@ -6,23 +6,19 @@ not covered under this security policy.**
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Typically only the latest version is maintained. Versions are released
|
||||
sequentially, with major, minor, and patch versions incremented as necessary. If
|
||||
a vulnerability is found in an old version of asdf, updating to the latest
|
||||
version of asdf will be required.
|
||||
<!-- x-release-please-start-version -->
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 0.10.x | :white_check_mark: |
|
||||
| 0.9.x | :x: |
|
||||
| 0.8.x | :x: |
|
||||
| 0.7.x | :x: |
|
||||
| 0.6.x | :x: |
|
||||
| 0.5.x | :x: |
|
||||
| 0.4.x | :x: |
|
||||
| 0.3.x | :x: |
|
||||
| 0.2.x | :x: |
|
||||
| 0.1.x | :x: |
|
||||
```
|
||||
0.11.1
|
||||
```
|
||||
|
||||
<!-- x-release-please-end -->
|
||||
|
||||
Typically only the latest version is maintained. Versions are released
|
||||
sequentially, with major, minor, and patch versions incremented as necessary.
|
||||
|
||||
If a vulnerability is found in an old version of asdf, updating to the latest
|
||||
version of asdf will be required.
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
|
@ -32,10 +32,14 @@ asdf primarily requires `git` & `curl`. Here is a _non-exhaustive_ list of comma
|
||||
|
||||
### Official Download
|
||||
|
||||
<!-- x-release-please-start-version -->
|
||||
|
||||
```shell:no-line-numbers
|
||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
|
||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.1
|
||||
```
|
||||
|
||||
<!-- x-release-please-end -->
|
||||
|
||||
### Community Supported Download Methods
|
||||
|
||||
We highly recommend using the official `git` method.
|
||||
|
@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
version=$(cat version.txt)
|
||||
sed -i "s/\(git clone.*--branch \).*/\1v$version/" docs/guide/getting-started.md
|
@ -1,12 +0,0 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user