-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix: Only seeing "in progress" status #36
base: master
Are you sure you want to change the base?
Conversation
…s value and get more correct messages.
…name of jobs successfull steps
Any chance this is getting merged @aldwyn-acn ? I actually use the fork now because I didn't find another way to get the status working for reusable workflows. |
@patrickpaulin It is not working for me. If it is working for everyone you should publish on market place. It will be easy for everyone. |
Above is my workflow file. I am not getting success status after completion of the job. Let me know If doing something wrong. @patrickpaulin |
Pull Request Template
📢 Type of change
📜 Description
The function
getWorkflowRunStatus()
was working incorrectly. I added a new way to get the current status of jobs.You can see that
job.name
didn't match withprocess.env.GITHUB_JOB
most part of time. Because of this, when we try to find step conclusion in array of steps, we'll get nothing, becausejobs
object isnull
.There is another point here. This way bellow we don't get the
success
orskipped
scenarios. We just have:in progress
(default) and somefailure
cases. Following the docs, I assumed that we just have these steps conclusion:skipped
,failure
,success
andcancelled
.So I created some logic to get the previous steps conclusion and I assumed that if nothing has failed we got some success scenario. I also discarding the current step, notification step. Most part of time we need to send a notification about previous steps or jobs and not to the current one.
example:
Before changes 😴
After changes: 😄
💚 How did you test it?
manually
📝 Checklist
🔮 Next steps
📸 Screenshots / GIFs