Skip to content

Commit

Permalink
using GITHUB_REF for base commit, and GITHUB_SHA for current commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Silverman committed Nov 13, 2024
1 parent e6b448f commit f861fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push_to_ejam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
run: |
# List modified files in the PR
base_commit=$(git merge-base HEAD main)
echo "Base commit: $base_commit"
echo "Base commit: $GITHUB_REF"
echo "Current HEAD commit: $GITHUB_SHA"
modified_files=$(git diff --name-only "$base_commit" "$GITHUB_SHA")
modified_files=$(git diff --name-only "$base_commit" "$GITHUB_REF")
echo "Modified files: $modified_files"
# Check if any Arrow files were modified (based on their file extension or path)
Expand Down

0 comments on commit f861fe4

Please sign in to comment.