We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe3a459 commit 16abce4Copy full SHA for 16abce4
.github/workflows/pr-checks.yml
@@ -34,8 +34,12 @@ jobs:
34
- name: Check for code changes
35
id: check_files
36
run: |
37
+ set -ex # Exit on error, print commands for debugging
38
+
39
echo "Checking for code changes..."
- CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }})
40
+ # Diff the current PR branch HEAD against the TARGET branch's HEAD
41
+ # The '...' syntax finds the common ancestor and diffs from there.
42
+ CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
43
44
if [[ -z "$CHANGED_FILES" ]]; then
45
echo "No changed files found. Assuming no code changes."
0 commit comments