diff --git a/.github/workflows/check_changelog.yml b/.github/workflows/check_changelog.yml index 66c03c9d..99a0b11f 100644 --- a/.github/workflows/check_changelog.yml +++ b/.github/workflows/check_changelog.yml @@ -2,10 +2,10 @@ name: Check Changelog on: pull_request: - types: [opened, reopened, edited, synchronize, labeled] + types: [opened, reopened, edited, labeled, unlabeled, synchronize] jobs: - check: + check-changelog: runs-on: ubuntu-latest if: | !contains(github.event.pull_request.body, '[skip changelog]') && @@ -15,4 +15,6 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - name: Check that CHANGELOG is touched - run: git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md + run: | + git fetch origin ${{ github.base_ref }} --depth 1 && \ + git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md