From e2d3e24892bed41649b9cb648f5f7f64b5804b2e Mon Sep 17 00:00:00 2001 From: c-bordon Date: Thu, 5 Jun 2025 09:31:25 -0300 Subject: [PATCH] Updated path --- .github/workflows/4_bumper_repository.yml | 5 ++--- .../github-branch-maintenance => }/repository_bumper.sh | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) rename tools/{github/github-branch-maintenance => }/repository_bumper.sh (95%) diff --git a/.github/workflows/4_bumper_repository.yml b/.github/workflows/4_bumper_repository.yml index 27604238..1a6f8a0c 100644 --- a/.github/workflows/4_bumper_repository.yml +++ b/.github/workflows/4_bumper_repository.yml @@ -22,7 +22,6 @@ on: description: 'Optional identifier for the run' required: false type: string - push: jobs: bump: @@ -37,8 +36,8 @@ jobs: CI_COMMIT_EMAIL: 22834044+wazuhci@users.noreply.github.com CI_GPG_PRIVATE_KEY: ${{ secrets.CI_WAZUHCI_GPG_PRIVATE }} GH_TOKEN: ${{ secrets.CI_WAZUHCI_BUMPER_TOKEN }} - BUMP_SCRIPT_PATH: tools/github/github-branch-maintenance/repository_bumper.sh - BUMP_LOG_PATH: tools/github/github-branch-maintenance + BUMP_SCRIPT_PATH: tools/repository_bumper.sh + BUMP_LOG_PATH: tools steps: - name: Dump event payload diff --git a/tools/github/github-branch-maintenance/repository_bumper.sh b/tools/repository_bumper.sh similarity index 95% rename from tools/github/github-branch-maintenance/repository_bumper.sh rename to tools/repository_bumper.sh index 886a8347..be7def50 100644 --- a/tools/github/github-branch-maintenance/repository_bumper.sh +++ b/tools/repository_bumper.sh @@ -5,12 +5,12 @@ # Usage: ./repository_bumper.sh # Global variables -DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)" -LOG_FILE="${DIR}/tools/github/github-branch-maintenance/repository_bumper_$(date +"%Y-%m-%d_%H-%M-%S-%3N").log" +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +LOG_FILE="${DIR}/tools/repository_bumper_$(date +"%Y-%m-%d_%H-%M-%S-%3N").log" VERSION="" STAGE="" FILES_EDITED=() -FILES_EXCLUDED='--exclude="repository_bumper_*.log" --exclude="CHANGELOG.md" --exclude="repository_bumper.sh" -exclude="4_bumper_repository.yml' +FILES_EXCLUDED='--exclude="repository_bumper_*.log" --exclude="CHANGELOG.md" --exclude="repository_bumper.sh" --exclude="4_bumper_repository.yml"' get_old_version_and_stage() { local VERSION_FILE="${DIR}/VERSION.json"