Skip to content

Commit 7c52984

Browse files
authored
ci: delete preview docs of the PR branch
1 parent f25785f commit 7c52984

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/delete-preview-docs.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
workflow_dispatch:
55
delete:
66

7-
env:
8-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
9-
107
jobs:
118
delete:
129
name: Delete Vercel Project
@@ -19,4 +16,4 @@ jobs:
1916
# Pull Vercel environment
2017
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
2118
# Delete vercel project linked to this branch
22-
vercel remove edsnlp-$BRANCH_NAME --yes --token=${{ secrets.VERCEL_TOKEN }}
19+
vercel remove edsnlp-${{ github.event.ref }} --yes --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)