question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find commit when triggering on release publish

See original GitHub issue

When working on a pipeline that is triggered by a release publish:

on:
  release:
    types: [ published ]

I get the following error:

Unable to get commit from workflow event: trying with the GitHub API...
Error: Request failed with status code 404
    at createError (/home/runner/work/_actions/EndBug/add-and-commit/v4.4.0/lib/index.js:1:428)
    at settle (/home/runner/work/_actions/EndBug/add-and-commit/v4.4.0/lib/index.js:1:31578)

It seems like the latest changes have broken this functionality. I pinned the library to v4.3.0 and was able to run successfully.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
williamscscommented, Sep 16, 2020

Sorry, I haven’t had a chance to test it, and since it’s on production for something that’s rarely changed, I probably won’t have the opportunity for a while. Thanks for looking into it!

0reactions
github-actions[bot]commented, Sep 16, 2020

This issue is being marked as “stale” because it has been open 20 days with no activity. Remove the “stale” label or comment, otherwise this will be closed in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github Action trigger on release not working on tag
Just creating a git tag is not enough. In short git tag is not the event that triggers a GitHub Release event.
Read more >
Frequently Asked Questions - semantic-release
Yes, every commits that contains [skip release] or [release skip] in their message will be excluded from the commit analysis and won't participate...
Read more >
Release triggers - Azure Pipelines - Microsoft Learn
A release will be triggered only if the Git push contains a commit on the specified branch. For example, selecting main will trigger...
Read more >
Git Hooks | Atlassian Git Tutorial
It's possible to use post-commit to trigger a local continuous integration system, but most of the time you'll want to be doing this...
Read more >
How to Publish a Python Package from GitHub Actions
Manually-created releases still trigger the GitHub Actions workflow ... don't need to create and push a git commit in order to do a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found