Skip to content

Commit a6717cc

Browse files
author
Deepak Pandey
committed
Fix Vercel rollback command
- Replace invalid --rollback flag with proper 'vercel rollback' command - Use npx vercel rollback --prod --token --yes instead of amondnet/vercel-action - This should resolve the 'unknown or unexpected option: --rollback' error
1 parent 613c22d commit a6717cc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,11 @@ jobs:
301301
uses: actions/checkout@v4
302302

303303
- name: Rollback deployment
304-
uses: amondnet/vercel-action@v25
305-
with:
306-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
307-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
308-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
309-
vercel-args: '--prod --rollback'
304+
run: |
305+
npx vercel rollback --prod --token ${{ secrets.VERCEL_TOKEN }} --yes
306+
env:
307+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
308+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
310309

311310
- name: Notify rollback via email
312311
run: |

0 commit comments

Comments
 (0)