File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Publish Dev Container Templates & 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+ packages : write
11+ contents : write
12+ pull-requests : write
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : " Publish Templates"
17+ uses : devcontainers/action@v1
18+ with :
19+ publish-templates : " true"
20+ base-path-to-templates : " ./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+ #
34+ # Configure git and Push updates
35+ # git config --global user.email github-actions[bot]@users.noreply.github.com
36+ # git config --global user.name github-actions[bot]
37+ # git config pull.rebase false
38+
39+ # branch=automated-documentation-update-$GITHUB_RUN_ID
40+ # git checkout -b $branch
41+ # message='Automated documentation update'
42+
43+ # Add / update and commit
44+ # git add */**/README.md
45+ # git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
46+
47+ # Push
48+ # if [ "$NO_UPDATES" != "true" ] ; then
49+ # git push origin "$branch"
50+ # gh pr create --title "$message" --body "$message"
51+ # fi
You can’t perform that action at this time.
0 commit comments