Skip to content

Commit

Permalink
fix curl json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Jun 7, 2024
1 parent d2b74c5 commit 0bb2eb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/about_daangn_com-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
run: |
curl -fsSL -X POST \
-H "Authorization: AdminKey ${{ secrets.WEBSITES_ADMIN_KEY }}" \
--json '{ "run_id": "${{ github.run_id }}" }' \
-H "Content-Type: application/json" \
-d '{ "run_id": "${{ github.run_id }}" }' \
"${{ inputs.bind_url }}"
- uses: actions/checkout@v4
Expand Down Expand Up @@ -89,9 +90,6 @@ jobs:
run: |
curl -fsSL -X POST \
-H "Authorization: AdminKey ${{ secrets.WEBSITES_ADMIN_KEY }}" \
--json '{' \
--json '"run_id": "${{ github.run_id }}",' \
--json '"status": "${{ job.status }}",' \
--json '"artifact_name": "about.daangn.com/${{ inputs.deployment_id }}.tar.zst"' \
--json '}' \
-H "Content-Type: application/json" \
-d '{ "run_id": "${{ github.run_id }}", "status": "${{ job.status }}", "artifact_name": "about.daangn.com/${{ inputs.deployment_id }}.tar.zst" }' \
"${{ inputs.callback_url }}"
2 changes: 1 addition & 1 deletion _workers/websites-integration/deployment-awaiter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { values } = parseArgs({
},
timeout: {
type: 'string',
default: (10 * 1000 * 60).toString(), // 10 mins
default: (10 * 60 * 1000).toString(), // 10 mins
},
},
});
Expand Down

0 comments on commit 0bb2eb6

Please sign in to comment.