Skip to content

fix(ci): fetch 2 commits for paths-filter on workflow_dispatch#430

Merged
Movm merged 1 commit intomasterfrom
fix/ci-paths-filter-fetch-depth
Jan 30, 2026
Merged

fix(ci): fetch 2 commits for paths-filter on workflow_dispatch#430
Movm merged 1 commit intomasterfrom
fix/ci-paths-filter-fetch-depth

Conversation

@Movm
Copy link
Copy Markdown
Collaborator

@Movm Movm commented Jan 30, 2026

Summary

  • Fix 'before' field is missing in event payload warning from dorny/paths-filter
  • Add fetch-depth: 2 to checkout step so there's a previous commit to diff against on manual workflow_dispatch triggers

Test plan

  • Trigger workflow manually via workflow_dispatch — verify no 'before' field is missing warning

dorny/paths-filter needs a previous commit to compare against.
With fetch-depth: 1 (default), workflow_dispatch has no 'before'
ref, causing it to fall back to last-commit-only detection.
@Movm Movm merged commit 4a4a425 into master Jan 30, 2026
7 of 8 checks passed
@Movm Movm deleted the fix/ci-paths-filter-fetch-depth branch March 10, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant