11name : " Release dev container features & Generate Documentation"
22on :
33 workflow_dispatch :
4+ push :
5+ branches :
6+ - main
47
58jobs :
69 deploy :
@@ -19,29 +22,29 @@ jobs:
1922 publish-features : " true"
2023 base-path-to-features : " ./src"
2124 generate-docs : " true"
22-
25+
2326 env :
2427 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2528
26- # - name: Create PR for Documentation
27- # id: push_image_info
28- # env:
29- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30- # run: |
31- # set -e
32- # echo "Start."
33- # # Configure git and Push updates
34- # git config --global user.email github-actions[bot]@users.noreply.github.com
35- # git config --global user.name github-actions[bot]
36- # git config pull.rebase false
37- # branch=automated-documentation-update-$GITHUB_RUN_ID
38- # git checkout -b $branch
39- # message='Automated documentation update'
40- # # Add / update and commit
41- # git add */**/README.md
42- # git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
43- # # Push
44- # if [ "$NO_UPDATES" != "true" ] ; then
45- # git push origin "$branch"
46- # gh pr create --title "$message" --body "$message"
47- # fi
29+ - name : Create PR for Documentation
30+ id : push_image_info
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ run : |
34+ set -e
35+ echo "Start."
36+ # Configure git and Push updates
37+ git config --global user.email github-actions[bot]@users.noreply.github.com
38+ git config --global user.name github-actions[bot]
39+ git config pull.rebase false
40+ branch=automated-documentation-update-$GITHUB_RUN_ID
41+ git checkout -b $branch
42+ message='Automated documentation update'
43+ # Add / update and commit
44+ git add */**/README.md
45+ git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
46+ # Push
47+ if [ "$NO_UPDATES" != "true" ] ; then
48+ git push origin "$branch"
49+ gh pr create --title "$message" --body "$message"
50+ fi
0 commit comments