Create an issue case the workflow fails #25111
Answered
by
MikeHamilton-RW
rffontenelle
asked this question in
Actions
-
|
I have a workflow set to try to build a documentation and I would like to have issues opened whenever that workflow fails for some reason. Any suggestion on how I set this up? |
Beta Was this translation helpful? Give feedback.
Answered by
MikeHamilton-RW
Dec 20, 2019
Replies: 1 comment
-
|
There are several ways I think you could approach this, some uglier than others. Is your document creation all in one job? And how many different steps? This Action looks like it would assist you along with the if conditional. https://github.com/JasonEtco/create-an-issue
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are several ways I think you could approach this, some uglier than others. Is your document creation all in one job? And how many different steps? This Action looks like it would assist you along with the if conditional.
https://github.com/JasonEtco/create-an-issue
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepsif
name: Create Documentationrun: DO STUFF TO CREATE DOCS
name: Create Issue
if: failure() # OR Check a bool variable you create and toggle as needed
uses:JasonEtco/create-an-issue@masterenv:
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}