Skip to content

Commit

Permalink
GitHub Actions
Browse files Browse the repository at this point in the history
	new file:   .github/release.yml
	renamed:    .github/workflows/documentation.yaml -> .github/workflows/documentation.yml
	new file:   .github/workflows/update-changelog.yml
	new file:   CHANGES.md
  • Loading branch information
tbowers7 committed Nov 18, 2024
1 parent af545b0 commit 06648cc
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
changelog:
exclude:
authors:
- pre-commit-ci
categories:
- title: Bug Fixes
labels:
- bug
- title: New Features
labels:
- enhancement
- title: Documentation
labels:
- documentation
- title: Other Changes
labels:
- "*"
File renamed without changes.
33 changes: 33 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow takes the GitHub release notes an updates the changelog on the
# main branch with the body of the release notes, thereby keeping a log in
# the git repo of the changes.

name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@61ce794778aa787ea8d204d9fe2928543cb2fe40 # v1.11.0
with:
release-notes: ${{ github.event.release.body }}
latest-version: ${{ github.event.release.name }}
path-to-changelog: CHANGES.md

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGES.md
Empty file added CHANGES.md
Empty file.

0 comments on commit 06648cc

Please sign in to comment.