File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 5
5
types : [docs-preview-create]
6
6
7
7
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 }}
9
9
10
10
jobs :
11
11
Sync :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - name : Set env vars
15
- run : |
16
- echo "BRANCH=preview/$ID" >> $GITHUB_ENV
17
- echo "SLUG=preview-$(echo ${ID//\//})" >> $GITHUB_ENV
18
-
19
14
- uses : actions/checkout@v4
20
15
with :
21
16
token : ${{ secrets.GH_TOKEN }}
59
54
repository : ${{ github.event.client_payload.repo }}
60
55
issue-number : ${{ github.event.client_payload.pr }}
61
56
body : |
62
- preview: https://svelte-dev-git-${{ env.SLUG }}-svelte.vercel.app/
57
+ preview: https://svelte-dev-git-${{ env.BRANCH }}-svelte.vercel.app/
63
58
64
59
_this is an automated message_
65
60
edit-mode : replace
You can’t perform that action at this time.
0 commit comments