Skip to content

Commit 7878f7a

Browse files
committed
feat: update GitHub deployment status handling; simplify status logic and remove unused options
1 parent 0321752 commit 7878f7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
working-directory: .
4545
vercel-args: '--prod'
4646

47+
# Create deployment entry in GitHub
4748
- name: Create GitHub deployment
4849
if: always()
4950
id: deployment
@@ -53,21 +54,20 @@ jobs:
5354
token: ${{ secrets.GITHUB_TOKEN }}
5455
env: production
5556
ref: ${{ github.sha }}
56-
override: false
5757

58+
# Update deployment status based on job result
5859
- name: Update deployment status
5960
if: always()
6061
uses: bobheadxi/deployments@v1
6162
with:
6263
step: finish
6364
token: ${{ secrets.GITHUB_TOKEN }}
64-
status: ${{ steps.vercel_deploy.outcome == 'success' && 'success' || 'failure' }}
65-
env: ${{ steps.deployment.outputs.env }}
65+
status: ${{ job.status }}
66+
env: production
6667
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
6768
env_url: https://devcontext.xyz
68-
override: false
69-
auto_inactive: true
7069

70+
# Explicitly fail workflow if Vercel deploy failed
7171
- name: Fail job if deployment failed
7272
if: ${{ steps.vercel_deploy.outcome != 'success' }}
7373
run: exit 1

0 commit comments

Comments
 (0)