@@ -72,22 +72,20 @@ jobs:
7272 esac
7373
7474 payload="$(jq -nc \
75- --arg event_type "neetcode_submission_synced" \
76- --arg source_repo "$SOURCE_REPO" \
77- --arg source_sha "$SOURCE_SHA" \
78- --arg synced_at "$sync_timestamp" \
75+ --arg ref "release" \
7976 --arg problem_slug "$problem_slug" \
8077 --arg language "$language" \
8178 --arg submission_path "$file_path" \
79+ --arg source_sha "$SOURCE_SHA" \
80+ --arg synced_at "$sync_timestamp" \
8281 '{
83- event_type: $event_type,
84- client_payload: {
85- source_repo: $source_repo,
86- source_sha: $source_sha,
87- synced_at: $synced_at,
82+ ref: $ref,
83+ inputs: {
8884 problem_slug: $problem_slug,
8985 language: $language,
90- submission_path: $submission_path
86+ submission_path: $submission_path,
87+ source_sha: $source_sha,
88+ synced_at: $synced_at
9189 }
9290 }')"
9391
9694 -H "Accept: application/vnd.github+json" \
9795 -H "Authorization: Bearer $BLOG_REPO_DISPATCH_TOKEN" \
9896 -H "X-GitHub-Api-Version: 2022-11-28" \
99- https://api.github.com/repos/devbattery/devbattery.github.io/dispatches \
97+ https://api.github.com/repos/devbattery/devbattery.github.io/actions/workflows/sync-neetcode-post.yml/ dispatches \
10098 -d "$payload"
10199 done <<< "$submission_files"
0 commit comments