-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (43 loc) · 1.22 KB
/
collect_changes.yml
File metadata and controls
44 lines (43 loc) · 1.22 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
---
name: "Collect changes"
on:
workflow_call:
workflow_dispatch:
jobs:
collect-changes:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
with:
ref: "main"
fetch-depth: 0
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
python-version: "3.14"
allow-prereleases: true
- name: "Setup git"
run: |
git config user.name pulpbot
git config user.email [email protected]
- name: "Collect changes"
run: |
pip install GitPython packaging
python3 .ci/scripts/collect_changes.py
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v8"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
title: "Update Changelog"
body: ""
branch: "update_changes"
delete-branch: true
- name: "Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
...