File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update release PR
2+ run-name : Update release PR
3+
4+
5+ on :
6+ push :
7+ branches :
8+ - dev
9+
10+ permissions :
11+ contents : read
12+ pull-requests : write
13+
14+ concurrency :
15+ group : update-release-pr
16+ cancel-in-progress : true
17+
18+ env :
19+ JOBS : python .github/workflows/scripts/jobs.py
20+ VALIDATION_REF : dev
21+
22+ jobs :
23+ prepare :
24+ name : Open pull request to main
25+ runs-on : ubuntu-latest
26+ timeout-minutes : 10
27+ steps :
28+ - uses : actions/checkout@v7
29+ with :
30+ ref : ${{ env.VALIDATION_REF }}
31+ fetch-depth : 0
32+
33+ - uses : actions/setup-python@v6
34+ with :
35+ python-version-file : .python-version
36+
37+ - name : Install commitizen
38+ run : |
39+ python -m pip install --upgrade pip commitizen
40+ python -m pip install -e . --no-deps
41+
42+ - name : Render preview changelog
43+ id : preview
44+ run : ${{ env.JOBS }} prepare
45+
46+ - name : Open or update the release pull request
47+ if : ${{ steps.preview.outputs.releasable == 'true' }}
48+ run : ${{ env.JOBS }} open_main_pr
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ PREDICTED_VERSION : ${{ steps.preview.outputs.predicted_version }}
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ run-name: Validate release
33
44
55on :
6- push :
7- branches :
8- - dev
96 schedule :
107 - cron : " 0 3 * * *"
118 workflow_dispatch :
@@ -30,44 +27,11 @@ concurrency:
3027env :
3128 ARTIFACT_RETENTION_DAYS : 90
3229 JOBS : python .github/workflows/scripts/jobs.py
33- # Scheduled/manual runs start from the default branch; validation always targets the dev branch.
3430 VALIDATION_REF : dev
3531
3632jobs :
37- prepare :
38- name : Open pull request to main
39- runs-on : ubuntu-latest
40- timeout-minutes : 10
41- steps :
42- - uses : actions/checkout@v7
43- with :
44- ref : ${{ env.VALIDATION_REF }}
45- fetch-depth : 0
46-
47- - uses : actions/setup-python@v6
48- with :
49- python-version-file : .python-version
50-
51- - name : Install commitizen
52- run : |
53- python -m pip install --upgrade pip commitizen
54- python -m pip install -e . --no-deps
55-
56- - name : Render preview changelog
57- id : preview
58- run : ${{ env.JOBS }} prepare
59-
60- - name : Open or update the release pull request
61- if : ${{ steps.preview.outputs.releasable == 'true' }}
62- run : ${{ env.JOBS }} open_main_pr
63- env :
64- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65- PREDICTED_VERSION : ${{ steps.preview.outputs.predicted_version }}
66-
6733 gate :
6834 name : Decide whether to validate
69- needs : prepare
70- if : ${{ always() }}
7135 runs-on : ubuntu-latest
7236 timeout-minutes : 10
7337 outputs :
You can’t perform that action at this time.
0 commit comments