forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1 KB
/
update-docs-version.yml
File metadata and controls
33 lines (30 loc) · 1 KB
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-22.04
steps:
- uses: actions/checkout@v5
with:
ref: main
- name: Update latest_version property in mkdocs.yml
run: |
sed -i "s/latest_version: .*/latest_version: ${GITHUB_REF_NAME}/g" mkdocs.yml
git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v3.10.1
with:
title: Update docs version to ${{ github.ref_name }}
body: |
Update docs version to ${{ github.ref_name }}
skip-checks: true
branch: update-docs-version
delete-branch: true