Skip to content

Commit

Permalink
ci: fix changelog step
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 25, 2024
1 parent 2f74edf commit 631c7d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,20 @@ jobs:
changelog:
runs-on: [ubuntu-latest]
if: github.event_name == 'pull_request_target' && github.event.pull_request.draft == false
timeout-minutes: 15

steps:
- name: Checkout repo
uses: actions/checkout@v4
if: ${{ github.event_name != 'pull_request_target' }}
- name: Checkout PR
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout PR
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Check changelog
run: bash .github/workflows/scripts/check-changelog.sh

Expand Down

0 comments on commit 631c7d2

Please sign in to comment.