Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit e6b2bae

Browse files
author
Noah Hanjun Lee
authored
Change deployment status action (#90)
1 parent c10d775 commit e6b2bae

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/deploy-to-cloud.yaml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
-
1212
name: Checkout
1313
uses: actions/checkout@v2
14-
# Deploy
14+
1515
-
16-
name: Deploy success
16+
name: Deploy successfully
1717
if: success()
18-
uses: deliverybot/deployment-status@v1
18+
uses: chrnorm/deployment-status@releases/v1
1919
with:
20-
state: success
21-
token: ${{ github.token }}
22-
description: Deployment is finished successfully.
20+
deployment_id: ${{ github.event.deployment.id }}
21+
state: "success"
22+
token: "${{ github.token }}"
2323

2424
deploy-dev:
2525
runs-on: ubuntu-latest
@@ -35,6 +35,13 @@ jobs:
3535
env:
3636
FILE_NAME: "./.github/values.yaml"
3737
FILE_BASE64: "aW5ncmVzczoKICBlbmFibGVkOiB0cnVlCiAgYW5ub3RhdGlvbnM6CiAgICBrdWJlcm5ldGVzLmlvL2luZ3Jlc3MuY2xhc3M6IG5naW54CiAgICBjZXJ0LW1hbmFnZXIuaW8vY2x1c3Rlci1pc3N1ZXI6ICJsZXRzZW5jcnlwdC1wcm9kIgogIGhvc3RzOgogICAgLSBob3N0OiBkZXYuZ2l0cGxveS5pbwogICAgICBwYXRoczoKICAgICAgICAtIC8KICB0bHM6CiAgIC0gc2VjcmV0TmFtZTogZ2l0cGxveS1kZXYtdGxzCiAgICAgaG9zdHM6CiAgICAgICAtIGRldi5naXRwbG95LmlvCgpyZXNvdXJjZXM6CiAgcmVxdWVzdHM6CiAgICBjcHU6IDUwbQogICAgbWVtb3J5OiAxMjhNaQoKZW52OgogIEdJVFBMT1lfREVCVUdfTU9ERTogInRydWUiCiAgR0lUUExPWV9TRVJWRVJfSE9TVDogImRldi5naXRwbG95LmlvIgogIEdJVFBMT1lfU0VSVkVSX1BST1RPOiBodHRwcwogIEdJVFBMT1lfQURNSU5fVVNFUlM6ICJoYW5qdW5sZWUiCgpleHRyYVNlY3JldE5hbWVzRm9yRW52RnJvbToKICAtIGdpdHBsb3ktZGV2LXNlY3JldAoKcGVyc2lzdGVudFZvbHVtZToKICAjIElmIHlvdSBhcmUgdXNpbmcgU1FMaXRlIGFzIHlvdXIgREIgZm9yIEdpdHBsb3ksIGl0IGlzIHJlY29tbWVuZGVkIHRvIGVuYWJsZSBwZXJzaXN0ZW5jZS4gCiAgZW5hYmxlZDogdHJ1ZQ=="
38+
-
39+
name: Start to deploy
40+
uses: chrnorm/deployment-status@releases/v1
41+
with:
42+
deployment_id: ${{ github.event.deployment.id }}
43+
state: "in_progress"
44+
token: "${{ github.token }}"
3845
-
3946
name: Deploy
4047
uses: WyriHaximus/github-action-helm3@v2
@@ -51,19 +58,19 @@ jobs:
5158
--description="Upgrade to ${GITHUB_REF#refs/tags/v}"
5259
kubeconfig: '${{ secrets.KUBECONFIG }}'
5360
-
54-
name: Deploy success
61+
name: Deploy successfully
5562
if: success()
56-
uses: deliverybot/deployment-status@v1
63+
uses: chrnorm/deployment-status@releases/v1
5764
with:
58-
state: success
59-
token: ${{ github.token }}
60-
description: Deployment is finished successfully.
65+
deployment_id: ${{ github.event.deployment.id }}
66+
state: "success"
67+
token: "${{ github.token }}"
6168
-
6269
name: Deploy failed
6370
if: failure()
64-
uses: deliverybot/deployment-status@v1
71+
uses: chrnorm/deployment-status@releases/v1
6572
with:
66-
state: failure
67-
token: ${{ github.token }}
68-
description: Deployment has failed.
73+
deployment_id: ${{ github.event.deployment.id }}
74+
state: "failure"
75+
token: "${{ github.token }}"
6976

0 commit comments

Comments
 (0)