File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
repository_dispatch :
5
5
types : [docs-preview-create]
6
6
7
+ env :
8
+ BRANCH : sync/${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/${{ github.event.client_payload.branch }}
9
+
7
10
jobs :
8
11
Sync :
9
12
runs-on : ubuntu-latest
19
22
- run : pnpm install --frozen-lockfile
20
23
21
24
- name : Checkout
22
- run : git checkout -B sync/ ${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/ ${{ github.event.client_payload.branch }}
25
+ run : git switch -c ${{ env.BRANCH }} || git switch ${{ env.BRANCH }}
23
26
24
27
- name : Sync
25
28
run : cd apps/svelte.dev && pnpm sync-docs --owner="${{ github.event.client_payload.owner }}" -p "${{ github.event.client_payload.package }}#${{ github.event.client_payload.branch }}"
30
33
git config --global user.email "github-actions[bot]@users.noreply.github.com"
31
34
32
35
- name : Push
33
- run : git add -A && git commit -m "sync docs" && git push -u origin sync/ ${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/${{ github.event.client_payload.branch }}
36
+ run : git add -A && git commit -m "sync docs" && git push -u origin ${{ env.BRANCH }}
You can’t perform that action at this time.
0 commit comments