You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/03/17 09:53:37 UTC
[spark] branch master updated: [SPARK-38575][INFRA][FOLLOW-UP] Use GITHUB_REF to get the current branch
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 968bb34 [SPARK-38575][INFRA][FOLLOW-UP] Use GITHUB_REF to get the current branch
968bb34 is described below
commit 968bb34ef6f824d2c1b7c68ea5190d0f5ef32654
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Thu Mar 17 18:52:26 2022 +0900
[SPARK-38575][INFRA][FOLLOW-UP] Use GITHUB_REF to get the current branch
### What changes were proposed in this pull request?
Current `git --show-current` doesn't work because we're not in a git repository when we calculate the changes we need.
Instead, this PR proposes to use `GITHUB_REF` environment variable to get the current branch.
### Why are the changes needed?
To fix up the build. See https://github.com/apache/spark/runs/5583091595?check_suite_focus=true (branch names)
### Does this PR introduce _any_ user-facing change?
No, dev-only.
### How was this patch tested?
Should monitor test.
Closes #35892 from HyukjinKwon/SPARK-38575-follow2.
Authored-by: Hyukjin Kwon <gu...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
.github/workflows/build_and_test.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index c589b39..2e9f971 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -96,7 +96,7 @@ jobs:
echo '::set-output name=hadoop::hadoop3'
else
echo '::set-output name=java::8'
- echo "::set-output name=branch::`git branch --show-current`"
+ echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
echo '::set-output name=type::regular'
echo '::set-output name=envs::{"SPARK_ANSI_SQL_MODE": "${{ inputs.ansi_enabled }}"}'
echo '::set-output name=hadoop::hadoop3'
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org