Skip to content

Commit

Permalink
Merge pull request #23 from boromir674/dev
Browse files Browse the repository at this point in the history
[GITOPS] - Merging 'dev' in 'release' - Initiate Release Process
  • Loading branch information
boromir674 authored Aug 17, 2024
2 parents 5f78f38 + 73afadf commit 30b5ec7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/go-auto-merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,21 @@ jobs:
if: ${{ steps.prod_or_dev.outputs.PROD_OR_DEV == 'DEV' }}
run: 'echo CM_MSG="[DEV] ${{ inputs.commit_message }} v${{ steps.sem_ver.outputs.SEMVER }} Release" >> $GITHUB_ENV'

# LABEL PR for Auto Deploy, to trigger 'Tag Prod' Workflow after merge
- name: "Add 'auto-deploy' PR label to trigger Git Tagging Workflow, after merge"
- name: Search for 'auto-deploy', among the registered Repository PR Labels
run: echo AUTO_DEPLOY_LABEL_OBJECT="$(gh label list --json id,name,description,isDefault --jq '.[] | select(.name == "auto-deploy")')" >> $GITHUB_ENV
# ${label_objects} | jq -r '.[] | select(.name == "auto-deploy")')

- name: Register 'auto-deploy', in Repository PR Labels, if not already present
if: ${{ env.AUTO_DEPLOY_LABEL_OBJECT != '' }}
run: |
gh label create auto-deploy --force --description "Branch Ready for Prod/Main Deployment" --color 2ea44f
gh pr edit "${{ env.RELEASE_BR }}" --add-label "auto-deploy"
echo "Label **auto-deploy was registered** in the **Repository PR Labels**!" >> $GITHUB_STEP_SUMMARY
env:
GH_TOKEN: ${{ secrets.pat_token }}

# LABEL PR for Auto Deploy, to trigger 'Tag Prod' Workflow after merge
- name: "Add 'auto-deploy' PR label to trigger Git Tagging Workflow, after merge"
run: gh pr edit "${{ env.RELEASE_BR }}" --add-label "auto-deploy"
env:
GH_TOKEN: ${{ secrets.pat_token }}

Expand Down

0 comments on commit 30b5ec7

Please sign in to comment.