Skip to content

Commit 3d2597d

Browse files
committed
Update deployment workflow to always update with deployment outcome even on CLI failure return code
1 parent 260e3ba commit 3d2597d

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.cache/pages.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,10 @@
2222
"contact",
2323
"offline",
2424
{
25-
"privacy": [
26-
"my-data"
27-
]
25+
"privacy": ["my-data"]
2826
},
2927
{
30-
"services": [
31-
"create-custom-font-sets",
32-
"overview"
33-
]
28+
"services": ["create-custom-font-sets", "overview"]
3429
},
3530
{
3631
"tags": [
@@ -45,4 +40,4 @@
4540
"typescript"
4641
]
4742
}
48-
]
43+
]

.github/workflows/deployment.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
6565

6666
- name: Comment preview URL on PR
67-
if: steps.vercel-preview.outcome == 'success'
67+
if: always() && steps.vercel-preview.outcome == 'success'
6868
uses: actions/github-script@v8
6969
with:
7070
script: |
@@ -82,7 +82,7 @@ jobs:
8282
});
8383
8484
- name: Comment preview failure on PR
85-
if: steps.vercel-preview.outcome != 'success'
85+
if: always() && steps.vercel-preview.outcome != 'success'
8686
uses: actions/github-script@v8
8787
with:
8888
script: |
@@ -128,12 +128,13 @@ jobs:
128128
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
129129

130130
- name: Log production deployment
131+
if: always() && steps.vercel-production.outcome == 'success'
131132
run: |
132133
echo "🚀 Production deployment completed"
133134
echo "Production URL: ${{ steps.vercel-production.outputs.preview-url }}"
134135
135136
- name: Comment production deployment failure on commit
136-
if: steps.vercel-production.outcome != 'success'
137+
if: always() && steps.vercel-production.outcome != 'success'
137138
uses: actions/github-script@v8
138139
with:
139140
script: |

0 commit comments

Comments
 (0)