Skip to content

Commit

Permalink
Stable Release (#2607)
Browse files Browse the repository at this point in the history
* Beta Release (#2604)

* fix: split cd by environment

* improve slack alerts for cd

* testing new branching strategy CD (#2598)

* WIP: branching strategy

* bump node version

* revert: node version bump

* WIP: CD create beta release pr

* fix: CD create beta release pr

* fix: show future cd workflow names

* dep: bump github action versions

* turn on stable release pr creation

* add: Darwins existing PR check

* add: use zesty branding for automated slack notifications

* improve slack notice message

---------

Co-authored-by: shrunyan <shrunyan@gmail.com>

* Beta Release (#2606)

* fix: split cd by environment

* improve slack alerts for cd

* testing new branching strategy CD (#2598)

* WIP: branching strategy

* bump node version

* revert: node version bump

* WIP: CD create beta release pr

* fix: CD create beta release pr

* fix: show future cd workflow names

* dep: bump github action versions

* turn on stable release pr creation

* add: Darwins existing PR check

* add: use zesty branding for automated slack notifications

* improve slack notice message

---------

Co-authored-by: shrunyan <shrunyan@gmail.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: shrunyan <shrunyan@gmail.com>
  • Loading branch information
github-actions[bot] and shrunyan authored Mar 20, 2024
1 parent 5152617 commit 2a521f5
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/cd-dev-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: code-deploy
SLACK_COLOR: "#FF0000"
SLACK_ICON: https://clipart.world/wp-content/uploads/2021/06/Rocket-Ship-clipart-png.png
SLACK_COLOR: "#FF2A08"
SLACK_ICON: https://brand.zesty.io/zesty-io-logo.svg
SLACK_MESSAGE: "PR merge by ${{ github.actor }} failed to deploy."
SLACK_TITLE: FAILED Dev/Stage Deployment for manager-ui
SLACK_TITLE: "FAILED: Dev/Stage Deployment for manager-ui"
SLACK_USERNAME: Deploy Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand All @@ -111,10 +111,10 @@ jobs:
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: code-deploy
SLACK_COLOR: "#36a64f"
SLACK_ICON: https://clipart.world/wp-content/uploads/2021/06/Rocket-Ship-clipart-png.png
SLACK_MESSAGE: "PR merge by ${{ github.actor }} has been deployed to stage."
SLACK_TITLE: Stage Deployment for manager-ui
SLACK_COLOR: "#75BF43"
SLACK_ICON: https://brand.zesty.io/zesty-io-logo.svg
# SLACK_MESSAGE: "PR merge by ${{ github.actor }} has been deployed to stage."
SLACK_TITLE: "SUCCESS: Stage Deployment of manager-ui"
SLACK_USERNAME: Deploy Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand All @@ -124,7 +124,24 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Create Beta Release PR

- name: Check if PR exists
id: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
--head 'dev' \
--base 'beta' \
--json title \
--jq 'length')
if ((prs > 0)); then
echo "skip=true" >> "$GITHUB_OUTPUT"
fi
- name: Create Beta Release
if: "!steps.check.outputs.skip"
run: gh pr create -B beta -H dev --title 'Beta Release' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2a521f5

Please sign in to comment.