forked from ag2ai/faststream
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.83 KB
/
Copy pathdocs_update-release-notes.yaml
File metadata and controls
59 lines (51 loc) · 1.83 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
52
53
54
55
56
57
58
59
name: Updated Release Notes
on:
workflow_dispatch: null
release:
types:
- published
jobs:
update-release-notes:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
TAG_NAME: ${{ github.ref_name }}
BRANCH_NAME: update-release-notes-${{ github.ref_name }}
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.10'
- name: Install dependencies
run: |
uv pip install --system httpx
- name: Run update_releases.py script
run: python ./docs/update_releases.py
- name: Check for changes
id: git-check
run: |
git diff --quiet || echo "::set-output name=changes_detected::true"
- name: Show git diff
run: git diff
- name: Create Pull Request
if: steps.git-check.outputs.changes_detected
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.AUTOMERGE_TOKEN }}
branch: ${{ env.BRANCH_NAME }}
base: "main" # The branch you want to merge into
title: "Update Release Notes for ${{ env.TAG_NAME }}"
commit-message: "Update Release Notes for ${{ env.TAG_NAME }}"
body: "This is an automated pull request to update the release notes for ${{ env.TAG_NAME }}"
labels: documentation
reviewers: Lancetnik, kumaranvpl