File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# Required checklist items use <!-- required:... --> tags for validation.
88# Prunes inner sections when file paths or classified change types no longer apply.
99# Removes stale checklist when none of those files change on this sync (strip path).
10- # The validate job runs for every non-draft PR (after relevant -files); inject runs when those paths change .
10+ # Single job: one checkout and one changed -files pass (draft PRs are skipped) .
1111#
1212# Checklist template: `.github/workflows/dependency-checklist.md` lives in this hub repo (with this
1313# workflow). The runner checks out the application repo first, then clones the hub again.
@@ -31,8 +31,8 @@ concurrency:
3131 cancel-in-progress : true
3232
3333jobs :
34- relevant-files :
35- name : Relevant dependency paths changed
34+ validate :
35+ name : Update and validate PR checklist
3636 if : github.event.pull_request.draft == false
3737 runs-on : ubuntu-latest
3838 steps :
5454 workspace:
5555 - pnpm-workspace.yaml
5656
57- validate :
58- if : needs.relevant-files.outputs.any_relevant == 'true'
59- name : Update and validate PR checklist
60- needs : relevant-files
61- runs-on : ubuntu-latest
62- steps :
63- - uses : actions/checkout@v4
64- with :
65- fetch-depth : 0
66-
6757 - id : checklist_hub_ref
6858 name : Resolve workflows hub ref (callee pin, not actions/checkout action_ref)
59+ if : steps.dependency_files.outputs.package_json_any_changed == 'true' || steps.dependency_files.outputs.lockfile_any_changed == 'true' || steps.dependency_files.outputs.workspace_any_changed == 'true'
6960 env :
7061 WORKFLOW_REF : ${{ github.workflow_ref }}
7162 HUB_REPO_PREFIX : ${{ format('{0}/workflows/', github.repository_owner) }}
You can’t perform that action at this time.
0 commit comments