Skip to content

Commit 5666362

Browse files
committed
maybe this?
1 parent d74e375 commit 5666362

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

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

77
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 }}
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+
1419
- uses: actions/checkout@v4
1520
with:
1621
token: ${{ secrets.GH_TOKEN }}
@@ -36,10 +41,6 @@ jobs:
3641
id: push
3742
run: git add -A && git commit -m "sync docs" && git push -u origin ${{ env.BRANCH }}
3843

39-
- name: Get preview deployment URL
40-
id: url
41-
run: echo "SLUG=$(echo ${BRANCH//\//})" >> $GITHUB_ENV
42-
4344
- name: Find comment
4445
id: fc
4546
# if: steps.push.outcome == 'success'

0 commit comments

Comments
 (0)