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

Build - GitHub Releases aren't working #42

Open
JanssenBrm opened this issue Dec 6, 2023 · 0 comments
Open

Build - GitHub Releases aren't working #42

JanssenBrm opened this issue Dec 6, 2023 · 0 comments

Comments

@JanssenBrm
Copy link
Owner

JanssenBrm commented Dec 6, 2023

We had to remove the publishing of the GitHub releases from the GitHub Actions (0d4f550) as this step was failing. An example build is available at:
https://github.com/JanssenBrm/vineyards/actions/runs/7118336926/job/19381053367

The error that is generated:

RequestError [HttpError]: fetch failed
    at /home/runner/work/vineyards/vineyards/node_modules/@octokit/request/dist-node/index.js:110:11 ***
  status: 500,
  request: ***
    method: 'POST',
    url: 'https://api.github.com/repos/JanssenBrm/winery/releases',
    headers: ***
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-rest.js/19.0.3 octokit-core.js/4.0.4 Node.js/18.18.2 (linux; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    ***,
    body: '***"tag_name":"v1.43.8","target_commitish":"master","name":"v1.43.8","body":"## [1.43.8](https://github.com/JanssenBrm/winery/compare/v1.43.7...v1.43.8) (2023-12-06)\\n\\n\\n### Bug Fixes\\n\\n* trigger build ([c33f64e](https://github.com/JanssenBrm/winery/commit/c33f64eb6ed1b3bee78527dfcc7bb05865cd401f))\\n\\n\\n\\n","prerelease":false***',
    request: *** agent: undefined, hook: [Function: bound bound register] ***
  ***,
  attemptNumber: 4,
  retriesLeft: 0,
  pluginName: '@semantic-release/github'
***

However, executing the request through Postman seems to be working just fine:

curl --location 'https://api.github.com/repos/JanssenBrm/winery/releases' \
--header 'Accept: application/vnd.github.v3+json' \
--header 'User-Agent: octokit-rest.js/19.0.3 octokit-core.js/4.0.4 Node.js/18.18.2 (linux; x64)' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Authorization: token [REDACTED]' \
--data '{
    "tag_name": "v1.43.6",
    "target_commitish": "master",
    "name": "v1.43.6",
    "body": "## [1.43.6](https://github.com/JanssenBrm/winery/compare/v1.43.5...v1.43.6) (2023-12-06)\n\n\n### Bug Fixes\n\n* trigger build ([88b315a](https://github.com/JanssenBrm/winery/commit/88b315af10ceac8fe4cd7fa71ce2100e915f4dc5))\n\n\n\n",
    "prerelease": false
}'
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

No branches or pull requests

1 participant