[HOLD] Spike: can we identify all changed files in a PR? #1673
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE! I'm messing around.
Part of #1659.
Findings
pull_request
trigger, we can see all the files changed in this PR.push
trigger, we only see the files changed in the most recent commit.fetch-depth
property of https://github.com/actions/checkout correctly. We might be able to fix number 2 above by passing the correct value of that field. I'm not finding very clear docs on what values for that field will accomplish what I'm looking for.build-docs
onpush
. The workflow was configured that way before we added thepull_request
trigger, but it's possible that we can remove thepush
trigger now that we're also running onpull_request
.build_docs
before they open a PR. That's the only scenario I can think of where we would still need to run onpush
.push
trigger enables us to speed up build times for everyone, that's a pretty significant net gain that might exceed the needs and wants of a couple people.pull_request
trigger, on forked PRs, would also give the full list of files changed in the PR.