Commit 650a89cf authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Debug

parent 0de24995
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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/
+1 −3
Original line number Diff line number Diff line
@@ -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 ====
@@ -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