Skip to content

Commit

Permalink
chore: refactor Promote prerelase release
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf committed Mar 22, 2024
1 parent 11e396d commit 5554f1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/create_release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
steps:

- name: Create Release Branch
id: create_branch
uses: pagopa/selfcare-commons/github-actions-template/create-release@main
with:
version_bump: ${{ inputs.version-bump }}
Expand All @@ -34,10 +35,10 @@ jobs:
- name: Trigger release ms UAT Release
run: |
gh workflow run release_ms.yml \
--ref $NEW_BRANCH_NAME
--ref ${{ steps.create_branch.outputs.new_branch_name }}
- name: Trigger PNPG release ms UAT Release
run: |
gh workflow run release_ms_pnpg.yml \
--ref $NEW_BRANCH_NAME
--ref ${{ steps.create_branch.outputs.new_branch_name }}
12 changes: 11 additions & 1 deletion .github/workflows/release_ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ jobs:
with:
environment: prod
tf_environment: prod
dir: 'infra/container_apps'
dir: 'infra/container_apps'

promote_release:
name: 'Promote prerelase release'
runs-on: ubuntu-20.04
needs: [release_prod]
steps:
- uses: pagopa/selfcare-commons/github-actions-template/promote-release@main
with:
github_path_token: ${{ secrets.GH_PAT_VARIABLES }}
release_version: ${{ vars.CURRENT_UAT_VERSION }}

0 comments on commit 5554f1b

Please sign in to comment.