asdf/.github/workflows/docs-version.yml
2022-06-24 09:26:43 +00:00

25 lines
575 B
YAML

name: "Docs Version Update"
on:
push:
tags:
- '*'
jobs:
bump-version-in-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: checkout repo
with:
ref: "refs/heads/master"
- run: sed -i "s|^\\(git clone.*--branch \\).*$|\\1v$(cat version.txt)|" docs/guide/getting-started.md
name: replace version in docs
- uses: stefanzweifel/git-auto-commit-action@v4
name: commit docs version update
with:
commit_message: "docs: update version in install instructions"