Skip to content

Commit

Permalink
[ci skip] check changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 8, 2019
1 parent 02d4c0a commit 540b0d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/check_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check Changelog

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check that CHANGELOG is touched
run: |
cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md

This comment has been minimized.

Copy link
@eregon

eregon Jan 25, 2023

Contributor

What do the inner parens (\(changelog skip\)) do? Are they needed?

This comment has been minimized.

Copy link
@schneems

schneems Feb 5, 2023

Author Member

I now use something like this. I prefer using a label these days https://github.com/heroku/libcnb.rs/blob/main/.github/workflows/check_changelog.yml

0 comments on commit 540b0d2

Please sign in to comment.