-
Notifications
You must be signed in to change notification settings - Fork 76
37 lines (37 loc) · 1.13 KB
/
release-notes.yml
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
name: Collect Release Notes
on:
workflow_dispatch: {}
schedule:
- cron: '0 6 * * 1' # every Monday at 6:00 AM
env:
MINORS: "v1.28 v1.29 v1.30 v1.31"
permissions:
contents: write
pull-requests: write
jobs:
collect-all:
if: github.repository == 'rancher/rke2-docs'
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Remove old release notes
run: |
for minor in $MINORS; do
rm docs/release-notes/$minor*.md
done
- name: Generate release notes
run: scripts/collect-all-release-notes.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get current month and year
id: date
run: echo "month_year=$(date +'%B %Y')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: update release-notes/v1.XX.X.md
title: Update Release Notes ${{ steps.date.outputs.month_year }}
body: Automated release notes update
branch: update-release-notes
signoff: true