Test bumper workflows

This commit is contained in:
Victor Carlos Erenu
2026-04-14 22:51:44 +07:00
parent cf8bfea424
commit ba9fc02441
2 changed files with 152 additions and 13 deletions
+6 -13
View File
@@ -1,4 +1,4 @@
name: Repository bumper
name: Repository bumper 4.x
run-name: Bump ${{ github.ref_name }} (${{ inputs.id }})
on:
@@ -14,11 +14,6 @@ on:
default: ''
required: false
type: string
tag:
description: 'Change branches references to tag-like references (e.g. v4.12.0-alpha7)'
default: false
required: false
type: boolean
issue-link:
description: 'Issue link in format https://github.com/wazuh/<REPO>/issues/<ISSUE-NUMBER>'
required: true
@@ -30,8 +25,8 @@ on:
jobs:
bump:
name: Repository bumper
runs-on: ubuntu-22.04
name: Repository bumper 4.x
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
@@ -81,18 +76,16 @@ jobs:
env:
VERSION: ${{ inputs.version }}
STAGE: ${{ inputs.stage }}
TAG: ${{ inputs.tag }}
run: |
script_params=""
version=${{ env.VERSION }}
stage=${{ env.STAGE }}
tag=${{ env.TAG }}
# Both version and stage provided
if [[ -n "$version" && -n "$stage" && "$tag" != "true" ]]; then
if [[ -n "$version" && -n "$stage" ]]; then
script_params="--version ${version} --stage ${stage}"
elif [[ -n "$version" && -n "$stage" && "$tag" == "true" ]]; then
script_params="--version ${version} --stage ${stage} --tag ${tag}"
elif [[ -z "$version" && -n "$stage" ]]; then
script_params="--stage ${stage}"
fi
issue_number=$(echo "${{ inputs.issue-link }}" | awk -F'/' '{print $NF}')