Skip to content

Commit 6ccb4d9

Browse files
authored
chore: update shopify-dev dispatch url (#3570)
1 parent d27e917 commit 6ccb4d9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/shopify-dev-preview-automation.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This workflow dispatches a docs sync event to shopify-dev when generated docs files change.
1+
# This workflow dispatches a docs sync event to shop/world when generated docs files change.
22
# It monitors changes to generated docs files in PRs.
33
#
4-
# The shopify-dev repository will then sync these docs files for preview.
4+
# The shop/world repository will then sync these docs files for preview.
55

66
name: Shopify Dev Docs Sync
77

@@ -20,7 +20,7 @@ concurrency:
2020

2121
jobs:
2222
dispatch-docs-sync:
23-
name: Dispatch docs sync to shopify-dev
23+
name: Dispatch docs sync to shop/world
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 10
2626
if: github.repository_owner == 'Shopify'
@@ -51,9 +51,9 @@ jobs:
5151
with:
5252
app-id: ${{ secrets.SHOPIFY_DEV_DOCS_SYNC_APP_ID }}
5353
private-key: ${{ secrets.SHOPIFY_DEV_DOCS_SYNC_APP_PRIVATE_KEY }}
54-
owner: Shopify
54+
owner: Shop
5555
repositories: |
56-
shopify-dev
56+
world
5757
5858
- name: Get changed files
5959
id: changed-files
@@ -93,7 +93,7 @@ jobs:
9393
echo "files=$JSON_ARRAY" >> $GITHUB_OUTPUT
9494
fi
9595
96-
- name: Dispatch to shopify-dev
96+
- name: Dispatch to shop/world
9797
if: steps.check-branch.outputs.matches == 'true' && (github.event.action == 'closed' || steps.changed-files.outputs.has_changes == 'true')
9898
env:
9999
GH_TOKEN: ${{ steps.app-token.outputs.token }}
@@ -130,19 +130,19 @@ jobs:
130130
}
131131
}')
132132
133-
echo "Dispatching to shopify-dev with payload:"
133+
echo "Dispatching to shop/world with payload:"
134134
echo "$PAYLOAD" | jq .
135135
136136
# Send the dispatch request
137137
HTTP_STATUS=$(curl -s -o response.txt -w "%{http_code}" \
138138
-X POST \
139139
-H "Authorization: Bearer $GH_TOKEN" \
140140
-H "Accept: application/vnd.github+json" \
141-
https://api.github.com/repos/Shopify/shopify-dev/dispatches \
141+
https://api.github.com/repos/shop/world/dispatches \
142142
-d "$PAYLOAD")
143143
144144
if [ "$HTTP_STATUS" -ge 200 ] && [ "$HTTP_STATUS" -lt 300 ]; then
145-
echo "Successfully dispatched docs $ACTION event to shopify-dev (HTTP $HTTP_STATUS)"
145+
echo "Successfully dispatched docs $ACTION event to shop/world (HTTP $HTTP_STATUS)"
146146
else
147147
echo "Failed to dispatch docs $ACTION event (HTTP $HTTP_STATUS)"
148148
cat response.txt

0 commit comments

Comments
 (0)