From b0d0e4dc8491e8d51d53a0cf623023212d8da1c7 Mon Sep 17 00:00:00 2001 From: Patryk Matuszak <305846+pmtk@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:58:15 +0100 Subject: [PATCH] dry run rehearsals to avoid accidental rw actions --- scripts/auto-rebase/rebase_job_entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/auto-rebase/rebase_job_entrypoint.sh b/scripts/auto-rebase/rebase_job_entrypoint.sh index 356c214cc0..762e4c0ae3 100755 --- a/scripts/auto-rebase/rebase_job_entrypoint.sh +++ b/scripts/auto-rebase/rebase_job_entrypoint.sh @@ -8,6 +8,11 @@ set -x echo "Environment:" printenv +if [[ "$JOB_NAME" == rehearse* ]]; then + echo "INFO: \$JOB_NAME starts with rehearse - running in DRY RUN mode" + export DRY_RUN=y +fi + cp /secrets/ci-pull-secret/.dockercfg "$HOME/.pull-secret.json" || { echo "WARN: Could not copy registry secret file" }