From 241e237502198032dbef5f60c83ba45b8853f846 Mon Sep 17 00:00:00 2001 From: Raul Del Pozo Moreno <14913942+rauldpm@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:39:25 +0200 Subject: [PATCH 1/2] fix: fixed env secret --- .github/workflows/4_bumper_repository.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/4_bumper_repository.yml b/.github/workflows/4_bumper_repository.yml index 1a6f8a0c..ad727021 100644 --- a/.github/workflows/4_bumper_repository.yml +++ b/.github/workflows/4_bumper_repository.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: inputs: version: - description: 'Target version (e.g. 4.13.0)' + description: 'Target version (e.g. 4.12.0)' default: '' required: false type: string @@ -26,7 +26,7 @@ on: jobs: bump: name: Repository bumper - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: contents: write pull-requests: write @@ -66,6 +66,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + with: + # Using workflow-specific GITHUB_TOKEN because currently CI_WAZUHCI_BUMPER_TOKEN + # doesn't have all the necessary permissions + token: ${{ env.GH_TOKEN }} - name: Determine branch name id: vars @@ -85,7 +89,7 @@ jobs: fi issue_number=$(echo "${{ inputs.issue-link }}" | awk -F'/' '{print $NF}') - BRANCH_NAME="enhancement/ansible${issue_number}-bump-${{ github.ref_name }}" + BRANCH_NAME="enhancement/wqa${issue_number}-bump-${{ github.ref_name }}" echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT echo "script_params=${script_params}" >> $GITHUB_OUTPUT @@ -126,6 +130,6 @@ jobs: run: | echo "Bump complete." echo "Branch: ${{ steps.vars.outputs.branch_name }}" - echo "PR: https://github.com/${{ github.repository }}/pull/${{ steps.create_pr.outputs.pull_request_number }}" + echo "PR: ${{ steps.create_pr.outputs.pull_request_url }}" echo "Bumper scripts logs:" cat ${BUMP_LOG_PATH}/repository_bumper*log From 365898aa87c04c82382b2fc714265a49d8632d99 Mon Sep 17 00:00:00 2001 From: Raul Del Pozo Moreno <14913942+rauldpm@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:27:10 +0200 Subject: [PATCH 2/2] chore: abstracted version --- .github/workflows/4_bumper_repository.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/4_bumper_repository.yml b/.github/workflows/4_bumper_repository.yml index ad727021..3b4dd269 100644 --- a/.github/workflows/4_bumper_repository.yml +++ b/.github/workflows/4_bumper_repository.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: inputs: version: - description: 'Target version (e.g. 4.12.0)' + description: 'Target version (e.g. 1.2.3)' default: '' required: false type: string