|
1 | | -name: 'Sync Release Notes to Docs' |
2 | | -description: 'Extract release notes from CHANGELOG.md and create a PR in mendix/docs repo' |
3 | | -runs: |
4 | | - using: 'composite' |
| 1 | +# name: 'Sync Release Notes to Docs' |
| 2 | +# description: 'Extract release notes from CHANGELOG.md and create a PR in mendix/docs repo' |
| 3 | +# runs: |
| 4 | +# using: 'composite' |
5 | 5 |
|
6 | | - steps: |
7 | | - - name: Extract latest release notes from CHANGELOG.md |
8 | | - id: changelog |
9 | | - shell: bash |
10 | | - run: | |
11 | | - notes=$(awk '/^## \[.*\]/ {found++} found==2 {exit} found==1' CHANGELOG.md | tail -n +2) |
12 | | - echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV |
13 | | - echo "$notes" >> $GITHUB_ENV |
14 | | - echo "EOF" >> $GITHUB_ENV |
| 6 | +# steps: |
| 7 | +# - name: Extract latest release notes from CHANGELOG.md |
| 8 | +# id: changelog |
| 9 | +# shell: bash |
| 10 | +# run: | |
| 11 | +# notes=$(awk '/^## \[.*\]/ {found++} found==2 {exit} found==1' CHANGELOG.md | tail -n +2) |
| 12 | +# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV |
| 13 | +# echo "$notes" >> $GITHUB_ENV |
| 14 | +# echo "EOF" >> $GITHUB_ENV |
15 | 15 |
|
16 | | - - name: Clone fork of docs repo |
17 | | - shell: bash |
18 | | - run: | |
19 | | - git clone https://x-access-token:${{ env.PAT }}@github.com/mendix/docs.git |
20 | | - cd docs |
21 | | - git config user.name "github-actions[bot]" |
22 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
23 | | - git checkout -b update-mobile-release-notes || git checkout update-mobile-release-notes |
24 | | - git remote set-url origin https://x-access-token:${{ env.PAT }}@github.com/moo-team/docs.git |
| 16 | +# - name: Clone Mendix Mobile fork of docs repo |
| 17 | +# shell: bash |
| 18 | +# run: | |
| 19 | +# git clone https://x-access-token:${{ env.PAT }}@github.com/MendixMobile/docs.git |
| 20 | +# cd docs |
| 21 | +# git config user.name "Mendix Mobile" |
| 22 | +# git config user.email "[email protected]" |
| 23 | +# git checkout -b update-mobile-release-notes || git checkout update-mobile-release-notes |
25 | 24 |
|
26 | | - - name: Update mobile release notes |
27 | | - shell: bash |
28 | | - run: | |
29 | | - cd docs |
30 | | - target_file="content/en/docs/releasenotes/mobile/make-it-native-parent/make-it-native-10.md" |
31 | | - echo -e "## Make It Native Update\n\n$RELEASE_NOTES\n\n$(cat $target_file)" > $target_file |
32 | | - git add $target_file |
33 | | - git commit -m "docs: update mobile release notes from make-it-native" || echo "No changes to commit" |
34 | | - git push origin update-mobile-release-notes |
| 25 | +# - name: Update mobile release notes |
| 26 | +# shell: bash |
| 27 | +# run: | |
| 28 | +# cd docs |
| 29 | +# target_file="content/en/docs/releasenotes/mobile/make-it-native-parent/make-it-native-10.md" |
| 30 | +# echo -e "## Make It Native Update\n\n$RELEASE_NOTES\n\n$(cat $target_file)" > $target_file |
| 31 | +# git add $target_file |
| 32 | +# git commit -m "docs: update mobile release notes from make-it-native" || echo "No changes to commit" |
| 33 | +# git push origin update-mobile-release-notes |
35 | 34 |
|
36 | | - - name: Install GitHub CLI |
37 | | - shell: bash |
38 | | - run: sudo apt-get install -y gh |
| 35 | +# - name: Install GitHub CLI |
| 36 | +# shell: bash |
| 37 | +# run: sudo apt-get install -y gh |
39 | 38 |
|
40 | | - - name: Create Pull Request |
41 | | - shell: bash |
42 | | - env: |
43 | | - GH_TOKEN: ${{ env.PAT }} |
44 | | - run: | |
45 | | - gh pr create \ |
46 | | - --repo mendix/docs \ |
47 | | - --base main \ |
48 | | - --head moo-team:update-mobile-release-notes \ |
49 | | - --title "Update mobile app release notes from make-it-native" \ |
50 | | - --body "Automated sync of the latest release notes from [make-it-native](https://github.com/mendix/make-it-native)." |
| 39 | +# - name: Create Pull Request |
| 40 | +# shell: bash |
| 41 | +# env: |
| 42 | +# GH_TOKEN: ${{ env.PAT }} |
| 43 | +# run: | |
| 44 | +# gh pr create \ |
| 45 | +# --repo mendix/docs \ |
| 46 | +# --base development \ |
| 47 | +# --head MendixMobile:update-mobile-release-notes \ |
| 48 | +# --title "Update mobile app release notes from make-it-native" \ |
| 49 | +# --body "Automated sync of the latest release notes from [make-it-native](https://github.com/mendix/make-it-native)." |
0 commit comments