Skip to content

Commit 5a75d59

Browse files
authored
Merge pull request #6973 from Shopify/chore/update-shopify-dev-dispatch-url
chore: update shopify-dev workflow dispatch url
2 parents e1ec082 + e166dfc commit 5a75d59

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 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

@@ -19,8 +19,8 @@ concurrency:
1919

2020
jobs:
2121
dispatch-docs-sync:
22-
name: Dispatch docs sync to shopify-dev
23-
runs-on: ubuntu-latest
22+
name: Dispatch docs sync to shop/world
23+
runs-on: shopify-ubuntu-latest
2424
timeout-minutes: 10
2525
if: github.repository_owner == 'Shopify'
2626
steps:
@@ -37,9 +37,9 @@ jobs:
3737
with:
3838
app-id: ${{ secrets.SHOPIFY_DEV_DOCS_SYNC_APP_ID }}
3939
private-key: ${{ secrets.SHOPIFY_DEV_DOCS_SYNC_APP_PRIVATE_KEY }}
40-
owner: Shopify
40+
owner: Shop
4141
repositories: |
42-
shopify-dev
42+
world
4343
4444
- name: Get changed files
4545
id: changed-files
@@ -78,7 +78,7 @@ jobs:
7878
echo "files=$JSON_ARRAY" >> $GITHUB_OUTPUT
7979
fi
8080
81-
- name: Dispatch to shopify-dev
81+
- name: Dispatch to shop/world
8282
if: github.event.action == 'closed' || steps.changed-files.outputs.has_changes == 'true'
8383
env:
8484
GH_TOKEN: ${{ steps.app-token.outputs.token }}
@@ -115,19 +115,19 @@ jobs:
115115
}
116116
}')
117117
118-
echo "Dispatching to shopify-dev with payload:"
118+
echo "Dispatching to shop/world with payload:"
119119
echo "$PAYLOAD" | jq .
120120
121121
# Send the dispatch request
122122
HTTP_STATUS=$(curl -s -o response.txt -w "%{http_code}" \
123123
-X POST \
124124
-H "Authorization: Bearer $GH_TOKEN" \
125125
-H "Accept: application/vnd.github+json" \
126-
https://api.github.com/repos/Shopify/shopify-dev/dispatches \
126+
https://api.github.com/repos/shop/world/dispatches \
127127
-d "$PAYLOAD")
128128
129129
if [ "$HTTP_STATUS" -ge 200 ] && [ "$HTTP_STATUS" -lt 300 ]; then
130-
echo "Successfully dispatched docs $ACTION event to shopify-dev (HTTP $HTTP_STATUS)"
130+
echo "Successfully dispatched docs $ACTION event to shop/world (HTTP $HTTP_STATUS)"
131131
else
132132
echo "Failed to dispatch docs $ACTION event (HTTP $HTTP_STATUS)"
133133
cat response.txt

0 commit comments

Comments
 (0)