Skip to content

Commit

Permalink
ci(changelog): fix changelog check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Świątek committed Feb 13, 2023
1 parent 86d4092 commit c36dbe7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Add PR base ref
run: |
git fetch origin ${{ github.base_ref }} --depth=1
git fetch origin ${{ github.base_ref }} --depth=50
- name: install towncrier
run: pip install towncrier==${{ env.TOWNCRIER_VERSION }}
- name: Check if new CHANGELOG entries added
run: |
make check-changelog
- name: Check if new CHANGELOG entries reference the correct PR
run: |
git diff --name-only ${{ github.base_ref }} HEAD .changelog | grep ${PR_NUMBER}
git diff --name-only origin/${{ github.base_ref }} HEAD .changelog | grep ${PR_NUMBER}

0 comments on commit c36dbe7

Please sign in to comment.