generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.29 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Release dev container features & Generate Documentation"
on:
workflow_dispatch:
jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
packages: write
steps:
- uses: actions/checkout@v3
- name: "Publish Features"
uses: devcontainers/action@v1
with:
publish-features: "true"
base-path-to-features: "./src"
generate-docs: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Bump Versions"
run: |
set -e
echo "Start."
python -m pip install -r workflows/bump/requirements.txt
python workflows/bump/main.py
- name: "Create PR"
id: push_image_info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
echo "Start."
branch=auto-update-$GITHUB_RUN_ID
git checkout -b $branch
message='Automated documentation and version update'
git push origin "$branch"
export PR_BRANCH=$branch
python -m pip install -r workflows/commit/requirements.txt
python workflows/commit/main.py
gh pr create --title "$message" --body "$message"