Loading sa5/.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ variables: LOGFILE_YANG: "yang-validation.txt" LOGFILE_LINT: "yang-linting.txt" LOGFILE_OPENAPI: "openapi-validation.txt" MY_VARIABLE: "true" DRY_RUN: "true" stages: - checking Loading Loading @@ -171,7 +171,7 @@ Delete old branches: script: - echo 'Delete old branches' - mkdir logs - ./delete_old_branches.sh ${CI_API_V4_URL} ${CI_PROJECT_ID} $DELETE_BRANCHES_TOKEN $MY_VARIABLE - ./delete_old_branches.sh ${CI_API_V4_URL} ${CI_PROJECT_ID} $DELETE_BRANCHES_TOKEN $DRY_RUN artifacts: paths: - logs/ sa5/delete_old_branches.sh +1 −3 Original line number Diff line number Diff line Loading @@ -19,8 +19,7 @@ echo "CI_PROJECT_ID:" $2 PRIVATE_TOKEN=$3 ONE_YEAR_AGO=$(date -d '1 year ago' --iso-8601=seconds) DRY_RUN="true" # Set to false to actually delete MY_VARIABLE=$4 DRY_RUN=$4 # Set to false to actually delete LOG_FILE="deleted_branches_$(date +%Y%m%d_%H%M%S).log" # ==== Helper: URL encode ==== Loading @@ -36,7 +35,6 @@ cd logs echo "Dry-run mode: $DRY_RUN" echo "Log file: $LOG_FILE" echo "" > "$LOG_FILE" # Start fresh echo "My variable: $MY_VARIABLE" # ==== Loop over paginated branch list ==== while true; do Loading Loading
sa5/.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ variables: LOGFILE_YANG: "yang-validation.txt" LOGFILE_LINT: "yang-linting.txt" LOGFILE_OPENAPI: "openapi-validation.txt" MY_VARIABLE: "true" DRY_RUN: "true" stages: - checking Loading Loading @@ -171,7 +171,7 @@ Delete old branches: script: - echo 'Delete old branches' - mkdir logs - ./delete_old_branches.sh ${CI_API_V4_URL} ${CI_PROJECT_ID} $DELETE_BRANCHES_TOKEN $MY_VARIABLE - ./delete_old_branches.sh ${CI_API_V4_URL} ${CI_PROJECT_ID} $DELETE_BRANCHES_TOKEN $DRY_RUN artifacts: paths: - logs/
sa5/delete_old_branches.sh +1 −3 Original line number Diff line number Diff line Loading @@ -19,8 +19,7 @@ echo "CI_PROJECT_ID:" $2 PRIVATE_TOKEN=$3 ONE_YEAR_AGO=$(date -d '1 year ago' --iso-8601=seconds) DRY_RUN="true" # Set to false to actually delete MY_VARIABLE=$4 DRY_RUN=$4 # Set to false to actually delete LOG_FILE="deleted_branches_$(date +%Y%m%d_%H%M%S).log" # ==== Helper: URL encode ==== Loading @@ -36,7 +35,6 @@ cd logs echo "Dry-run mode: $DRY_RUN" echo "Log file: $LOG_FILE" echo "" > "$LOG_FILE" # Start fresh echo "My variable: $MY_VARIABLE" # ==== Loop over paginated branch list ==== while true; do Loading