mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-26 20:30:59 +01:00
ci: Prebuild action fails if Changelog is missing from all commits of a PR
Changelog-None.
This commit is contained in:
parent
d067066b17
commit
910c014183
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
|
@ -42,6 +42,16 @@ jobs:
|
|||
git fetch origin ${{ github.base_ref }}
|
||||
git rebase origin/${{ github.base_ref }}
|
||||
|
||||
- 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
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
|
Loading…
Add table
Reference in a new issue