diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index 06f319f..d31de11 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -34,11 +34,14 @@ jobs: check-changelog: runs-on: ubuntu-latest + if: contains(github.event.pull_request.labels.*.name, 'noChangeLog') == false steps: - name: Checkout repository uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Check that the CHANGELOG has been modified in the current branch - run: git whatchanged --name-only --pretty="" origin..HEAD | grep CHANGELOG + run: git whatchanged --name-only --pretty="" origin/${{ github.event.pull_request.base.ref }}..HEAD | grep CHANGELOG lint-changelog: runs-on: ubuntu-latest