File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ IMAGE="${INPUT_DOCKER_REGISTRY}/${INPUT_DOCKER_IMAGE}:${INPUT_TAG}"
3131
3232# Branch on the GitOps repo to commit & push to.
3333# Defaults to "main"; DEV updates target the "dev" branch.
34- # shellcheck disable=SC2034
35- GITOPS_BRANCH=" main"
34+ # Consumed by push_to_gitops_repo() in lib/gitops-functions.sh.
35+ export GITOPS_BRANCH=" main"
3636
3737# Configure git user
3838git config --global user.email " ${INPUT_GITOPS_EMAIL} " && git config --global user.name " ${INPUT_GITOPS_USER} "
@@ -43,7 +43,7 @@ if [[ ( $GITHUB_REF == refs/heads/master || $GITHUB_REF == refs/heads/main ) &&
4343
4444elif [[ $GITHUB_REF == refs/heads/dev && -n " ${INPUT_GITOPS_DEV:- } " ]]; then
4545 log_info " Run update for DEV"
46- GITOPS_BRANCH=" dev"
46+ export GITOPS_BRANCH=" dev"
4747 git fetch origin dev
4848 git checkout -B dev origin/dev
4949 process_file_updates " $INPUT_GITOPS_DEV " " true"
You can’t perform that action at this time.
0 commit comments