Skip to content

Commit 03d7723

Browse files
publish changelog yaml addition for testing
1 parent 8777a5a commit 03d7723

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Changelog to Mendix Docs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch to read the changelog and version from'
8+
required: true
9+
default: 'master'
10+
type: string
11+
studio_pro_version:
12+
description: 'Studio Pro major version (determines the docs parent folder)'
13+
required: true
14+
default: 'Studio Pro 11.x'
15+
type: choice
16+
options:
17+
- 'Studio Pro 10.x'
18+
- 'Studio Pro 11.x'
19+
20+
jobs:
21+
publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Sync docs fork with upstream
25+
run: gh repo sync MendixMobile/docs --branch development --force
26+
env:
27+
GH_TOKEN: ${{ secrets.MENDIX_MOBILE_DOCS_PR_GITHUB_PAT }}
28+
29+
- uses: actions/checkout@v2
30+
with:
31+
ref: ${{ github.event.inputs.branch }}
32+
33+
- uses: actions/setup-node@v3
34+
with:
35+
node-version-file: .nvmrc
36+
37+
- name: Install docs release script dependencies
38+
run: npm ci --prefix .github/scripts
39+
40+
- name: Create release notes PR in mendix/docs Github repository
41+
env:
42+
MENDIX_MOBILE_DOCS_PR_GITHUB_PAT: ${{ secrets.MENDIX_MOBILE_DOCS_PR_GITHUB_PAT }}
43+
STUDIO_PRO_MAJOR: ${{ github.event.inputs.studio_pro_version == 'Studio Pro 10.x' && '10' || '11' }}
44+
run: node .github/scripts/release-native-template.mjs

0 commit comments

Comments
 (0)