Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions .github/workflows/update-docs-version.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
name: Update docs version

on:
release:
types: [published]
release:
types: [ published ]

jobs:
build:
if: github.repository == 'testcontainers/testcontainers-java'
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 # v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build:
if: github.repository == 'testcontainers/testcontainers-java'
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: Create Pull Request
uses: peter-evans/create-pull-request@3c3d696d5b8aa2eb0e70f76c251e4b149122acf1 # v3.10.1
with:
title: Update docs version to ${GITHUB_REF##*/}
body: |
Update docs version to ${GITHUB_REF##*/}
skip-checks: true
branch: update-docs-version
delete-branch: true