Skip to content

Commit

Permalink
Don't run changelog check if no packages are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kekonn committed Nov 21, 2024
1 parent 99c7e41 commit 46f839f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ jobs:
printf "Changes to code detected: %s" $code_or_cargo_changed >> $GITHUB_STEP_SUMMARY
- uses: swatinem/rust-cache@v2
if: ${{ steps.check_relevant_changes.outputs.code_or_cargo_changed == 'true' }}
- name: Install Rust toolchain
if: ${{ steps.check_relevant_changes.outputs.code_or_cargo_changed == 'true' }}
uses: dtolnay/rust-toolchain@stable

- name: Verify if CHANGELOG is updated
if: ${{ steps.check_relevant_changes.outputs.code_or_cargo_changed == 'true' }}
run: |
# Extract a list of modified workspace packages
workspace_root=$(cargo metadata --format-version 1 --no-deps | jq -r '.workspace_root')
Expand Down

0 comments on commit 46f839f

Please sign in to comment.