Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish changelog to v2 on new release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
env: | |
GITHUB_USER: seldondev | |
jobs: | |
update-v2-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: v2 | |
- uses: rhysd/changelog-from-release/action@v3 | |
with: | |
file: CHANGELOG.md | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
commit: false | |
args: -d=false -l=2 | |
header: "# Changelog\n\n" | |
- name: Open PR with Changelog changes | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
add-paths: ./CHANGELOG.md | |
commit-message: Update Changelog | |
branch: update-changelog | |
branch-suffix: timestamp | |
delete-branch: true | |
title: "ci: Update CHANGELOG" | |
labels: v2 | |
body: " | |
# Updated CHANGELOG\n | |
This automated PR re-generates the changelog to keep it up to | |
date." | |
reviewers: sakoush, lc525 |