From 53bd617d263450b29dc262c2289b58220eac0a63 Mon Sep 17 00:00:00 2001 From: Manuel Rafeli Date: Fri, 12 Apr 2024 17:29:18 +0200 Subject: [PATCH] chore: Create release workflow (#99) --- .github/workflows/create_release_branch.yml | 54 +++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/create_release_branch.yml diff --git a/.github/workflows/create_release_branch.yml b/.github/workflows/create_release_branch.yml new file mode 100644 index 00000000..3893c1ac --- /dev/null +++ b/.github/workflows/create_release_branch.yml @@ -0,0 +1,54 @@ +name: Create Release branch + +on: + workflow_dispatch: + inputs: + version-bump: + required: false + type: choice + options: + - major + - minor + - patch + default: patch + description: 'Major, Minor, or Patch version bump' + +jobs: + create_branch: + name: 'Create Release Branch' + runs-on: ubuntu-20.04 + permissions: + contents: write + actions: write + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + + - name: Create Release Branch + id: create_branch + uses: pagopa/selfcare-commons/github-actions-template/create-release@main + with: + version_bump: ${{ inputs.version-bump }} + github_path_token: ${{ secrets.GH_PAT_VARIABLES }} + + - name: Trigger release ms UAT Release + run: | + gh workflow run release_ms.yml \ + --ref ${{ steps.create_branch.outputs.new_branch_name }} + + - name: Trigger PNPG release ms UAT Release + run: | + gh workflow run release_pnpg_ms.yml \ + --ref ${{ steps.create_branch.outputs.new_branch_name }} + + - name: Trigger release cdc UAT Release + run: | + gh workflow run release_cdc.yml \ + --ref ${{ steps.create_branch.outputs.new_branch_name }} + + - name: Trigger PNPG release cdc UAT Release + run: | + gh workflow run release_pnpg_cdc.yml \ + --ref ${{ steps.create_branch.outputs.new_branch_name }} +