mirror of
https://github.com/vercel/commerce.git
synced 2025-06-16 04:11:22 +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:
|
||||
token: '${{ secrets.GH_TOKEN}}'
|
||||
environment-url: http://my-app-url.com
|
||||
environment: production
|
||||
environment: develop
|
||||
- name: Authenticate with Google Cloud
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
id: auth
|
||||
@ -82,3 +82,19 @@ jobs:
|
||||
|
||||
- name: 'Use output'
|
||||
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