Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always prefer selective env-vars (allow overriding CI provider vars) #18

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/bin/build_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
if [ -n "$GITHUB_ACTIONS" ]; then
# Get environment variables
platform=github_actions
branch=${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}
branch=${SELECTIVE_BRANCH:-${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}}
pr_title=$SELECTIVE_PR_TITLE
target_branch=${GITHUB_BASE_REF}
target_branch=${SELECTIVE_TARGET_BRANCH:-$GITHUB_BASE_REF}
actor=$GITHUB_ACTOR
sha=$GITHUB_SHA
run_id=$GITHUB_RUN_ID
run_attempt=$GITHUB_RUN_ATTEMPT
sha=${SELECTIVE_SHA:-$GITHUB_SHA}
run_id=${SELECTIVE_RUN_ID:-$GITHUB_RUN_ID}
run_attempt=${SELECTIVE_RUN_ATTEMPT:-$GITHUB_RUN_ATTEMPT}
commit_message=$(git log --format=%s -n 1 $sha)
else
platform=$SELECTIVE_PLATFORM
Expand Down
Loading