Skip to content

Commit

Permalink
cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shrunyan committed Mar 27, 2024
1 parent a8954f1 commit 8aceff2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# SLACK_COLOR: "#FF0000"
# SLACK_ICON: https://clipart.world/wp-content/uploads/2021/06/Rocket-Ship-clipart-png.png
# SLACK_MESSAGE: "PR merge by ${{ github.actor }} failed to deploy."
# SLACK_TITLE: FAILED Beta Deployment for manager-ui
# SLACK_TITLE: FAILED: Beta Deployment for manager-ui
# SLACK_USERNAME: Deploy Bot
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand All @@ -73,7 +73,7 @@ jobs:
# SLACK_COLOR: "#FF0000"
# 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: Beta Deployment for manager-ui
# SLACK_TITLE: BETA: Deployment for manager-ui
# SLACK_USERNAME: Deploy Bot
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ jobs:
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: Dev Deployment of manager-ui"
SLACK_TITLE: "DEV: Deployment of manager-ui"
SLACK_USERNAME: Deploy Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

# create_stage_release:
# create_release:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# SLACK_COLOR: "#FF0000"
# SLACK_ICON: https://clipart.world/wp-content/uploads/2021/06/Rocket-Ship-clipart-png.png
# SLACK_MESSAGE: "PR merge by ${{ github.actor }} failed to deploy."
# SLACK_TITLE: FAILED Stable Deployment for manager-ui
# SLACK_TITLE: FAILED: Stable Deployment for manager-ui
# SLACK_USERNAME: Deploy Bot
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand All @@ -73,6 +73,6 @@ jobs:
# SLACK_COLOR: "#FF0000"
# 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: Stable Deployment for manager-ui
# SLACK_TITLE: STABLE: Deployment for manager-ui
# SLACK_USERNAME: Deploy Bot
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
38 changes: 1 addition & 37 deletions .github/workflows/cd-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
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_TITLE: "STAGE: Deployment of manager-ui"
SLACK_USERNAME: Deploy Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand Down Expand Up @@ -103,39 +103,3 @@ jobs:
run: gh pr create -B beta -H stage --title 'Beta Release' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# unify_dev_history:
# runs-on: ubuntu-latest
# # needs: [deploy_stage]
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v4

# - name: Check if PR exists
# id: check
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# prs=$(gh pr list \
# --repo "$GITHUB_REPOSITORY" \
# --head 'stage' \
# --base 'dev' \
# --json title \
# --jq 'length')
# if ((prs > 0)); then
# echo "skip=true" >> "$GITHUB_OUTPUT"
# fi

# - name: Merge Stage Release to Dev
# if: "!steps.check.outputs.skip"
# run: gh pr create -B dev -H stage --title 'Merge Stage:Dev' --body 'Created by Github action'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# unify_dev_history:
# runs-on: ubuntu-latest
# steps:
# - id: create-dev-pr
# run: gh pr create -B dev -H stage --title 'Merge Stage:Dev' --body 'Update dev history with stage release. PR created and merged by Github action'
# - id: merge-dev-pr
# run: gh pr merge --auto --squash ${{steps.create-dev-pr.}}

0 comments on commit 8aceff2

Please sign in to comment.