Maintenance release: 4.5.1 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |