forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1013 Bytes
/
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
28
29
30
31
32
33
name: Update docs version
on:
release:
types: [ published ]
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
if: github.repository == 'testcontainers/testcontainers-java'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
ref: main
- 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@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 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