Skip to content

Commit

Permalink
ci: Prebuild action fails if Changelog is missing from all commits of…
Browse files Browse the repository at this point in the history
… a PR
  • Loading branch information
ShahanaFarooqui committed Sep 12, 2024
1 parent 2bd9c22 commit af15ac2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ jobs:
run: make check-gen-updated
- name: Check docs
run: make check-doc
- name: Check changelog
run: |
base_ref="${{ github.base_ref }}"
if [ -z "$base_ref" ]; then
base_ref="master"
fi
if [[ -z "$(git log origin/$base_ref..HEAD --oneline --grep='Changelog-')" && "$(git rev-parse --abbrev-ref HEAD)" != "$base_ref" ]]; then
echo "::error::'Changelog' entry is missing in all commits" && exit 1
fi
compile:
name: Compile CLN ${{ matrix.cfg }}
Expand Down

0 comments on commit af15ac2

Please sign in to comment.