Skip to content

Commit

Permalink
Fix Workflow Name (#45)
Browse files Browse the repository at this point in the history
* rename file, fix name

* also trigger on release published

* update styleguide

* fix styleguide typo
  • Loading branch information
wesker-albert authored Jan 14, 2024
1 parent 698003d commit 747a4d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: 'Release Published'
name: 'Update Changelog'

on:
pull_request:
types: [closed]
release:
types: [published]

permissions:
contents: write

jobs:
push-updated-changelog:
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true || github.event_name == 'release'
name: "Update Changelog"
runs-on: ubuntu-latest

Expand All @@ -35,8 +37,8 @@ jobs:
run: |
make generate_changelog
- uses: stefanzweifel/git-auto-commit-action@v5
- name: 'Push Changes'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Update Changelog !automated'
branch: master
commit_user_name: '[AI] The Red Queen'
15 changes: 2 additions & 13 deletions STYLEGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,8 @@ cluttersome. Introducing sub-directories should be thoughtfully planned, and dis

## CHANGELOG

The CHANGELOG is automatically generated with the command:

```bash
make generate_changelog
```

Always, always, **always** make sure to do this as the last step before requesting a
PR review. Any PR where the CHANGELOG isn't updated should have that change requested
by reviewers.

**! Note:** For best results, run the command and commit the change after opening a draft
PR, or after marking your PR ready for review. This seems to produce the most accurate
results in the log.
The CHANGELOG is automatically generated when a PR is merged to `master`, or a new
release is published. Don't worry about updating it manually.

## Pull-Request Naming

Expand Down

0 comments on commit 747a4d0

Please sign in to comment.