forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 1 KB
/
update-docs-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Update docs version
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Update latest_version property in mkdocs.yml
run: |
sed -i "s/latest_version: .*/latest_version: ${GITHUB_REF##*/}/g" mkdocs.yml
git diff
- name: Commit changes
run: |
git config user.email "[email protected]"
git config user.name "GitHub Action - Update docs version"
git add mkdocs.yml
git commit -m "Update documentation version to ${GITHUB_REF##*/}" -m "skip-checks: true" || echo "not changed"
- name: Push changes
uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}