Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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