mainmatter / continue-on-error-comment Goto Github PK
View Code? Open in Web Editor NEWGitHub action to add comment when a continue-on-error job fails
GitHub action to add comment when a continue-on-error job fails
This action is designed to be used with PRs to surface the information about which "continue-on-error" jobs have failed.
If someone sets it up to run in a context that doesn't have a PR then it should just fail silently and not break the build ๐
First of all, thank you so much for creating this workflow. Saved my bacon when I tried to integrate some checks that should "warn" on failure and found out GHA simply does not support that usecase.
I found quite an odd problem when integrating this workflow along with trigger-workflow-and-wait though.
If the last commit to a branch that I am PR'ing is a regular commit, github.sha
works just fine. But, if the last commit to the branch was a merge or revert commit, then github.sha
gives me a nonsensical commit hash
The actual commit that triggered the workflow, a revert commit
I pass this commit hash to my job on the other end of my trigger-workflow-and-wait
, and I managed to solve it by using github.event.pull_request.head.sha
instead. But continue-on-error-comment
still gives me the nonsensical hash when it comments on my PR.
I see that this workflow is using some context.sha
to determine the hash, I wonder if this is a similar problem?
Hello again!
I have a special account that my IT org has provisioned for me for CI tasks. This account is not named github-actions[bot]
and thus does not delete it's previous comments to the PR that it's running on.
Is it possible to do this check against the user dynamically? Or possibly adding some other metadata (magic string?) to the comment to make this user check unnecessary?
Thanks!
GH warns that Node 16 will be phased out in Spring 2024
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.