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 55 types : [docs-preview-create]
66
77env :
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
1010jobs :
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 }}
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
You can’t perform that action at this time.
0 commit comments