Skip to content

Commit 0bb8f22

Browse files
committed
[SPARK-42230][INFRA][FOLLOWUP] Add GITHUB_PREV_SHA and APACHE_SPARK_REF to lint job
### What changes were proposed in this pull request? Like the other jobs, this PR aims to add `GITHUB_PREV_SHA` and `APACHE_SPARK_REF` environment variables to `lint` job. ### Why are the changes needed? This is required to detect the changed module accurately. ### Does this PR introduce _any_ user-facing change? No, this is a infra-only bug fix. ### How was this patch tested? Manual review. Closes #39809 from dongjoon-hyun/SPARK-42230-2. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 1304a33) Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 9d7373a commit 0bb8f22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ jobs:
455455
LANG: C.UTF-8
456456
PYSPARK_DRIVER_PYTHON: python3.9
457457
PYSPARK_PYTHON: python3.9
458+
GITHUB_PREV_SHA: ${{ github.event.before }}
458459
container:
459460
image: dongjoon/apache-spark-github-action-image:20220207
460461
steps:
@@ -467,6 +468,7 @@ jobs:
467468
- name: Sync the current branch with the latest in Apache Spark
468469
if: github.repository != 'apache/spark'
469470
run: |
471+
echo "APACHE_SPARK_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV
470472
git fetch https://github.com/$GITHUB_REPOSITORY.git ${GITHUB_REF#refs/heads/}
471473
git -c user.name='Apache Spark Test Account' -c user.email='[email protected]' merge --no-commit --progress --squash FETCH_HEAD
472474
git -c user.name='Apache Spark Test Account' -c user.email='[email protected]' commit -m "Merged commit"

0 commit comments

Comments
 (0)