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