-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (40 loc) · 1.12 KB
/
documentation-versioning.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
34
35
36
37
38
39
40
41
42
name: documentation-versions
on:
release:
types: [published]
jobs:
update-docs-internal-versions:
if: github.repository == 'cloudfoundry/stratos'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Update internal-versions.json
run: |
cd website
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run add-version
- name: Create Pull Request
id: cpr
uses: peter-evans/[email protected]
with:
commit-message: Update Docs Versions
delete-branch: true
title: Update website docs version following release
body: |
- Auto-generated
labels: |
ready for review
draft: false
base: ${GITHUB_REF##*/}
- name: Check output
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"