Skip to content

Commit fd1266e

Browse files
committed
EML-000: fix shellcheck
1 parent 7a1a573 commit fd1266e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/update-gitops.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3838
git 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

4444
elif [[ $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"

0 commit comments

Comments
 (0)