Skip to content

Commit

Permalink
Merge pull request #176 from n-osborne/changelog-workflow
Browse files Browse the repository at this point in the history
Add a CI workflow for changelog
  • Loading branch information
n-osborne authored Nov 10, 2023
2 parents 4707033 + e8de605 commit 3c4f9e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: changelog

on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened, labeled, unlabeled ]

jobs:
build:
runs-on: ubuntu-latest

if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-needed') }}

steps:
- uses: actions/checkout@v1

- name: git diff
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
! git diff --exit-code origin/$BASE_REF -- CHANGES.md

0 comments on commit 3c4f9e3

Please sign in to comment.