Skip to content

Commit

Permalink
chore: Create release workflow (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Apr 12, 2024
1 parent 636590d commit 53bd617
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/create_release_branch.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 53bd617

Please sign in to comment.