Stub reader-magnet welcome course, active: false pending Cate's story
Sync courses / sync (push) Failing after 6s
Sync courses / sync (push) Failing after 6s
Placeholder welcome-email copy in Cate's voice (Fantasy Michigan), wired end-to-end but not enrollable until the real manuscript/cover/epub land.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
name: Sync courses
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Package and sync
|
||||
run: |
|
||||
tar czf /tmp/courses.tar.gz courses
|
||||
status=$(curl -s -o /tmp/sync-response.json -w '%{http_code}' \
|
||||
-X POST "http://eec-cateconners:8080/admin/sync" \
|
||||
-H "Authorization: Bearer ${CATECONNERS_EEC_SYNC_TOKEN}" \
|
||||
--data-binary @/tmp/courses.tar.gz)
|
||||
cat /tmp/sync-response.json
|
||||
echo
|
||||
if [ "$status" -ge 300 ]; then
|
||||
echo "sync failed with status $status"
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
CATECONNERS_EEC_SYNC_TOKEN: ${{ secrets.CATECONNERS_EEC_SYNC_TOKEN }}
|
||||
Reference in New Issue
Block a user