-
Notifications
You must be signed in to change notification settings - Fork 136
45 lines (42 loc) · 1.17 KB
/
documentation-versioning.yml
File metadata and controls
45 lines (42 loc) · 1.17 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
34
35
36
37
38
39
40
41
42
43
44
45
name: documentation-versions
on:
release:
types: [published]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
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/create-pull-request@v3.3.0
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 }}"