Skip to content

Commit

Permalink
correct double quotes used in JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Feb 1, 2024
1 parent d4c17ea commit 6f13872
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/artfdelc/action.yml
Expand Up @@ -28,6 +28,6 @@ runs:
run: |
$response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
-X POST "https://api.github.com/repos/${{ github.repository }}/dispatches" `
-d '{\"event_type\":\"delete_artifacts\",\"client_payload\":{\"runid\":\"${{ github.run_id }}\"}}'
-d '{"event_type":"delete_artifacts","client_payload":{"runid":"${{ github.run_id }}"}}'
if( '${{ inputs.owdebug }}' -eq '1' ) { $response }
shell: pwsh
6 changes: 3 additions & 3 deletions .github/actions/ghrelcre/action.yml
Expand Up @@ -51,7 +51,7 @@ runs:
run: |
$response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
-X POST "https://api.github.com/repos/${{ github.repository }}/git/tags" `
-d '{\"tag\":\"${{ inputs.tag }}\",\"message\":\"${{ inputs.tagmsg }}\",\"object\":\"${{ steps.last_commit.outputs.sha }}\",\"type\":\"commit\",\"tagger\":{\"name\":\"Open Watcom GitHub\",\"email\":\"openwatcom.github@gmail.com\"}}'
-d '{"tag":"${{ inputs.tag }}","message":"${{ inputs.tagmsg }}","object":"${{ steps.last_commit.outputs.sha }}","type":"commit","tagger":{"name":"Open Watcom GitHub","email":"openwatcom.github@gmail.com"}}'
if( '${{ inputs.owdebug }}' -eq '1' ) { $response }
$sha = $response | jq -r .sha
if( "$sha" -eq 'null' ) { $sha = '' }
Expand All @@ -63,7 +63,7 @@ runs:
echo "${{ steps.ghtag.outputs.sha }}"
$response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
-X POST "https://api.github.com/repos/${{ github.repository }}/git/refs" `
-d '{\"ref\":\"refs/tags/${{ inputs.tag }}\",\"sha\":\"${{ steps.ghtag.outputs.sha }}\"}'
-d '{"ref":"refs/tags/${{ inputs.tag }}","sha":"${{ steps.ghtag.outputs.sha }}"}'
if( '${{ inputs.owdebug }}' -eq '1' ) { $response }
shell: pwsh
- if: steps.ghtag.outputs.sha != ''
Expand All @@ -72,7 +72,7 @@ runs:
run: |
$response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
-X POST "https://api.github.com/repos/${{ github.repository }}/releases" `
-d '{\"tag_name\":\"${{ inputs.tag }}\",\"target_commitish\":\"master\",\"name\":\"${{ inputs.title }}\",\"body\":\"${{ inputs.note }}\",\"draft\":false,\"prerelease\":true,\"generate_release_notes\":false}'
-d '{"tag_name":"${{ inputs.tag }}","target_commitish":"master","name":"${{ inputs.title }}","body":"${{ inputs.note }}","draft":false,"prerelease":true,"generate_release_notes":false}'
if( '${{ inputs.owdebug }}' -eq '1' ) { $response }
$id = $response | jq -r .id
if( "$id" -eq 'null' ) { $id = '' }
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/coverity.yml
Expand Up @@ -133,15 +133,15 @@ jobs:
run: |
$response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
-X POST "https://api.github.com/repos/${{ github.repository }}/git/refs" `
-d '{\"ref\":\"refs/tags/${{ env.OWCOV_TAG }}\",\"sha\":\"${{ steps.last_commit.outputs.sha }}\"}'
-d '{"ref":"refs/tags/${{ env.OWCOV_TAG }}","sha":"${{ steps.last_commit.outputs.sha }}"}'
if( '${{ vars.OWDEBUG }}' -eq '1' ) { $response }
shell: pwsh
- if: steps.check_tag.outputs.sha != ''
name: Update Coverity scan tag
run: |
$response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
-X PATCH "https://api.github.com/repos/${{ github.repository }}/git/refs/tags/${{ env.OWCOV_TAG }}" `
-d '{\"sha\":\"${{ steps.last_commit.outputs.sha }}\"}'
-d '{"sha":"${{ steps.last_commit.outputs.sha }}"}'
if( '${{ vars.OWDEBUG }}' -eq '1' ) { $response }
shell: pwsh

Expand Down Expand Up @@ -245,14 +245,14 @@ jobs:
# run: |
# $response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
# -X POST "https://api.github.com/repos/${{ github.repository }}/git/refs" `
# -d '{\"ref\":\"refs/tags/${{ env.OWCOV_TAG }}\",\"sha\":\"${{ steps.last_commit.outputs.sha }}\"}'
# -d '{"ref":"refs/tags/${{ env.OWCOV_TAG }}","sha":"${{ steps.last_commit.outputs.sha }}"}'
# if( '${{ vars.OWDEBUG }}' -eq '1' ) { $response }
# shell: pwsh
# - if: steps.check_tag.outputs.sha != ''
# name: Update Coverity scan tag
# run: |
# $response = ${{ steps.curlcmd.outputs.gh }} -H "Authorization: Bearer ${{ github.token }}" `
# -X PATCH "https://api.github.com/repos/${{ github.repository }}/git/refs/tags/${{ env.OWCOV_TAG }}" `
# -d '{\"sha\":\"${{ steps.last_commit.outputs.sha }}\"}'
# -d '{"sha":"${{ steps.last_commit.outputs.sha }}"}'
# if( '${{ vars.OWDEBUG }}' -eq '1' ) { $response }
# shell: pwsh

0 comments on commit 6f13872

Please sign in to comment.