File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
types : [docs-preview-create]
6
6
7
7
env :
8
- BRANCH : sync/ ${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/${{ github.event.client_payload.branch }}
8
+ ID : ${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/${{ github.event.client_payload.branch }}
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
+
14
19
- uses : actions/checkout@v4
15
20
with :
16
21
token : ${{ secrets.GH_TOKEN }}
36
41
id : push
37
42
run : git add -A && git commit -m "sync docs" && git push -u origin ${{ env.BRANCH }}
38
43
39
- - name : Get preview deployment URL
40
- id : url
41
- run : echo "SLUG=$(echo ${BRANCH//\//})" >> $GITHUB_ENV
42
-
43
44
- name : Find comment
44
45
id : fc
45
46
# if: steps.push.outcome == 'success'
You can’t perform that action at this time.
0 commit comments