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
66name : Shopify Dev Docs Sync
77
@@ -20,7 +20,7 @@ concurrency:
2020
2121jobs :
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'
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
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