Skip to content

Commit 37fa59a

Browse files
committed
shorter branch names
1 parent 781b1d0 commit 37fa59a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@ on:
55
types: [docs-preview-create]
66

77
env:
8-
ID: ${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/${{ github.event.client_payload.branch }}
8+
BRANCH: preview-${{ github.event.client_payload.package }}-${{ github.event.client_payload.pr }}
99

1010
jobs:
1111
Sync:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Set env vars
15-
run: |
16-
echo "BRANCH=preview/$ID" >> $GITHUB_ENV
17-
echo "SLUG=preview-$(echo ${ID//\//})" >> $GITHUB_ENV
18-
1914
- uses: actions/checkout@v4
2015
with:
2116
token: ${{ secrets.GH_TOKEN }}
@@ -59,7 +54,7 @@ jobs:
5954
repository: ${{ github.event.client_payload.repo }}
6055
issue-number: ${{ github.event.client_payload.pr }}
6156
body: |
62-
preview: https://svelte-dev-git-${{ env.SLUG }}-svelte.vercel.app/
57+
preview: https://svelte-dev-git-${{ env.BRANCH }}-svelte.vercel.app/
6358
6459
_this is an automated message_
6560
edit-mode: replace

0 commit comments

Comments
 (0)