-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (31 loc) · 1.1 KB
/
check-out-new-version.yaml
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
34
35
36
37
38
39
name: Check out new version
on:
push:
tags:
- v*
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create tag branch
run: |
git checkout -b release-${{ github.ref_name }}
git push origin release-${{ github.ref_name }}
- name: Check out new version
run: ./check-out-version.sh --version ${{ github.ref_name }} --force
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Check out new version ${{ github.ref_name }}
title: Check out new version ${{ github.ref_name }}
body: |
This PR checks out the `${{ github.ref_name }}` docs.
Please review the changes by clicking on the `Preview URL` below and make sure that everything looks good.
> Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: release-${{ github.ref_name }}
base: main
labels: |
documentation
release