Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
REPO: ${{ github.repository }}
run: |
lanes=full
# A pull request's checkout is GitHub's merge of its head into the base branch's
# current tip, its first parent. The event's base.sha can be older than that tip
# (it does not follow later pushes to main), and a diff against it would count
# whatever main merged since as the pull request's own change.
if [ "$EVENT" = pull_request ] && git rev-parse -q --verify HEAD^2 > /dev/null; then
BASE=$(git rev-parse HEAD^1)
fi
if [ -n "$BASE" ] && git cat-file -e "$BASE^{commit}" 2>/dev/null; then
git diff --name-only "$BASE" HEAD > changed.txt
cat changed.txt
Expand Down
Loading