Skip to content

Define Content-Type on apiHeaders for HTTP requests to GitHub#6

Open
kNoAPP wants to merge 3 commits intozyborg:masterfrom
kNoAPP:master
Open

Define Content-Type on apiHeaders for HTTP requests to GitHub#6
kNoAPP wants to merge 3 commits intozyborg:masterfrom
kNoAPP:master

Conversation

@kNoAPP
Copy link

@kNoAPP kNoAPP commented Feb 2, 2024

As of a few days ago, this action started throwing the exception:

Invoke-WebRequest: /home/runner/work/_actions/zyborg/gh-action-buildnum/v1/action.ps1:158
Line |
 158 |  … eGistResp = Invoke-WebRequest -Headers $apiHeaders -Uri $updateGistUr …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The given key 'Content-Type' was not present in the dictionary.

This PR fixes that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants