Skip to content

Commit 1304a33

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]>
1 parent 3aa92fb commit 1304a33

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
@@ -505,6 +505,7 @@ jobs:
505505
LANG: C.UTF-8
506506
PYSPARK_DRIVER_PYTHON: python3.9
507507
PYSPARK_PYTHON: python3.9
508+
GITHUB_PREV_SHA: ${{ github.event.before }}
508509
container:
509510
image: ${{ needs.precondition.outputs.image_url }}
510511
steps:
@@ -520,6 +521,7 @@ jobs:
520521
- name: Sync the current branch with the latest in Apache Spark
521522
if: github.repository != 'apache/spark'
522523
run: |
524+
echo "APACHE_SPARK_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV
523525
git fetch https://github.com/$GITHUB_REPOSITORY.git ${GITHUB_REF#refs/heads/}
524526
git -c user.name='Apache Spark Test Account' -c user.email='[email protected]' merge --no-commit --progress --squash FETCH_HEAD
525527
git -c user.name='Apache Spark Test Account' -c user.email='[email protected]' commit -m "Merged commit" --allow-empty

0 commit comments

Comments
 (0)