mirror of
https://github.com/vercel/commerce.git
synced 2025-06-16 12:21:20 +00:00
fix: Update deployment status for develop environment
This commit is contained in:
parent
7a03c23905
commit
fd4f7f5be0
18
.github/workflows/develop.deploy-functions.yml
vendored
18
.github/workflows/develop.deploy-functions.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: '${{ secrets.GH_TOKEN}}'
|
token: '${{ secrets.GH_TOKEN}}'
|
||||||
environment-url: http://my-app-url.com
|
environment-url: http://my-app-url.com
|
||||||
environment: production
|
environment: develop
|
||||||
- name: Authenticate with Google Cloud
|
- name: Authenticate with Google Cloud
|
||||||
if: steps.semantic.outputs.new_release_published == 'true'
|
if: steps.semantic.outputs.new_release_published == 'true'
|
||||||
id: auth
|
id: auth
|
||||||
@ -82,3 +82,19 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Use output'
|
- name: 'Use output'
|
||||||
run: 'curl "${{ steps.deploy.outputs.url }}"'
|
run: 'curl "${{ steps.deploy.outputs.url }}"'
|
||||||
|
|
||||||
|
- name: Update deployment status (success)
|
||||||
|
if: success()
|
||||||
|
uses: chrnorm/deployment-status@v2
|
||||||
|
with:
|
||||||
|
token: '${{ secrets.GH_TOKEN }}'
|
||||||
|
environment-url: ${{steps.deploy.outputs.url}}
|
||||||
|
state: 'success'
|
||||||
|
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||||
|
- name: Update deployment status (failure)
|
||||||
|
if: failure()
|
||||||
|
uses: chrnorm/deployment-status@v2
|
||||||
|
with:
|
||||||
|
token: '${{ secrets.GH_TOKEN}}'
|
||||||
|
state: 'failure'
|
||||||
|
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user