mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
Provide a way to opt-out from CHANGELOG check
Co-authored-by: Alex Pyrgiotis <alex.p@freedom.press>
This commit is contained in:
parent
d868699bab
commit
a910ccc273
1 changed files with 6 additions and 12 deletions
18
.github/workflows/check_pr.yml
vendored
18
.github/workflows/check_pr.yml
vendored
|
@ -1,6 +1,7 @@
|
||||||
name: Check branch conformity
|
name: Check branch conformity
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: ["opened", "labeled", "unlabeled", "reopened", "synchronize"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prevent-fixup-commits:
|
prevent-fixup-commits:
|
||||||
|
@ -20,17 +21,10 @@ jobs:
|
||||||
|
|
||||||
check-changelog:
|
check-changelog:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Ensure CHANGELOG.md is populated for user-visible changes
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
# Pin the GitHub action to a specific commit that we have audited and know
|
||||||
uses: actions/checkout@v4
|
# how it works.
|
||||||
|
- uses: tarides/changelog-check-action@509965da3b8ac786a5e2da30c2ccf9661189121f
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
changelog: CHANGELOG.md
|
||||||
- name: ensure CHANGELOG.md is populated
|
|
||||||
env:
|
|
||||||
BASE_REF: ${{ github.event.pull_request.base.ref }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if git diff --exit-code "origin/${BASE_REF}" -- CHANGELOG.md; then
|
|
||||||
echo "::error::No CHANGELOG.md modifications were found in this pull request."
|
|
||||||
return -1;
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue