Skip to content

Collect Release Notes #15

Collect Release Notes

Collect Release Notes #15

Workflow file for this run

name: Collect Release Notes
on:
workflow_dispatch: {}
schedule:
- cron: '0 6 * * 1' # every Monday at 6:00 AM
env:
MINORS: "v1.27 v1.28 v1.29 v1.30"
permissions:
contents: write
pull-requests: write
jobs:
collect-all:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python 🐍
uses: actions/setup-python@v5
- 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: Install codespell
run: |
python -m pip install --upgrade pip
pip install codespell
- name: Run codespell
run: codespell
- name: Get current month and year
id: date
run: echo "::set-output name=month_year::$(date +'%B %Y')"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: update release-notes/k3s-*.md
title: Update Release Notes ${{ steps.date.outputs.month_year }}
body: Automated release notes update
branch: update-release-notes
signoff: true