-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (41 loc) · 1.14 KB
/
Copy pathupdate-release-pr.yml
File metadata and controls
51 lines (41 loc) · 1.14 KB
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
47
48
49
50
51
name: Update release PR
run-name: Update release PR
on:
push:
branches:
- dev
permissions:
contents: read
pull-requests: write
concurrency:
group: update-release-pr
cancel-in-progress: true
env:
JOBS: python .github/workflows/scripts/jobs.py
VALIDATION_REF: dev
jobs:
prepare:
name: Open pull request to main
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
with:
ref: ${{ env.VALIDATION_REF }}
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version-file: .python-version
- name: Install commitizen
run: |
python -m pip install --upgrade pip commitizen
python -m pip install -e . --no-deps
- name: Render preview changelog
id: preview
run: ${{ env.JOBS }} prepare
- name: Open or update the release pull request
if: ${{ steps.preview.outputs.releasable == 'true' }}
run: ${{ env.JOBS }} open_main_pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PREDICTED_VERSION: ${{ steps.preview.outputs.predicted_version }}