File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Release dev container features & Generate Documentation"
2+ on :
3+ workflow_dispatch :
4+
5+ jobs :
6+ deploy :
7+ if : ${{ github.ref == 'refs/heads/main' }}
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : write
11+ pull-requests : write
12+ packages : write
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : " Publish Features"
17+ uses : devcontainers/action@v1
18+ with :
19+ publish-features : " true"
20+ base-path-to-features : " ./src"
21+ generate-docs : " true"
22+
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+
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
48+
Original file line number Diff line number Diff line change 1+ .env
You can’t perform that action at this time.
0 commit comments