-
Notifications
You must be signed in to change notification settings - Fork 48
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
Rework getWorkflowRunId() when run-name is provided #17
Conversation
Here are the test results for the last commit 1fda9fc: https://github.com/LudovicTOURMAN/workflow-dispatch/actions/runs/7395335486 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Hello @aurelien-baudet, will you be able to have a look at this PR? Thank you 😊 |
bump |
@LudovicTOURMAN Hi, looks like this action is abandoned from the Author. You seem like to know the topic as above discussion takes place. Can you fork the original one 'benc-uk/workflow-dispatch' (which looks also abandoned) towards your repo GH actions? |
@LudovicTOURMAN Bump.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make some small changes to make code more readable.
I will merge once it's done.
Thanks for the feedback @aurelien-baudet. I've been able to rework the function to make it lighter and more readable. |
Bump |
Sorry, I have no more time and energy to maintain this repository. I even don't have computer anymore. Someone of you should for this repository and merge the different pull requests. |
@LudovicTOURMAN I wanted to know if you're planning to take over on this action. |
Hello @fbiesse, we are already using some private fork within my company. So I'm not going to maintain another public one. Go ahead if you would like to pick all of those for the community (and thanks). @aurelien-baudet, no worry. That was still nice you provided this composite. Thanks for the work you've done and have a nice "repo-tirement" |
@LudovicTOURMAN Thank you, actually I have the same need for my company. |
@aurelien-baudet I created the fork with all PR merged ? |
I tried to transfer repository but it fails with "fbiesse/workflow-dispatch already exists". |
@aurelien-baudet let’s do it. i just created @the-actions-org and invited you. we can add users from this thread and future maintainers once the repo is transferred. |
There is an error "You don’t have the permission to create public repositories on the-actions-org". |
It looks like the transfer succeeded. I went ahead and changed the base permissions for org members to |
changes applied by LudovicTOURMAN
@fbiesse I created the org and took transfer of the repo to help expedite remaining actions and responses (since I still receive updates from this thread). I'm not really interested in maintaining it, as I found a different solution and no longer use this. I added you to |
@evanlindsey thank you, it will be definitely more convenient. The think I can do is to create a PR with the last things I did on my fork (it already have both PR merged and tested) and rename the username part in the Readme. I'll be back of vacation in 2 weeks, I'll do it when I'll be back. |
@evanlindsey I'm back from vacations, but I couldn't accept the invitation to the new repo in time. |
@fbiesse welcome back and no problem! it looks like you were able to accept the |
@evanlindsey perfect, thank you ! |
Issue:
As discussed here, I figured out that the current function
octokit.rest.checks.listForRef
, which is based onrepos/OWNER/REPO/commits/REF/check-runs
, and used to retrieve the run id, when a run-name is provided, is not working.Cause is that
check_name
is filled by Github with the jobs.<job_id> (or jobs.<job_id>.name) and not the run-name we are expecting.Solution:
The default
octokit.rest.actions.listWorkflowRuns
currently used is also the proper one to filter based on the name.So once we use the method, we only need to do an extra filter on the
name
attribute to match the properrun-name
.To limit the number of results,
created
parameter has also been set on the API call.Since the two recent functions
findWorkflowRunIdFromFirstRunOfSameWorkflowId
andfindWorklowRunIdFromRunName
are merged back intogetWorkflowRunId
, I cleaned them.Extra changes:
workflow-id
as outputworkflow-logs
:output
: Set remote workflow logs (as raw) inworkflow-logs
outputjson-output
: Set remote workflow logs (as json object) inworkflow-logs
outputrun-name
outputs
definitionshoud
,tirggered
,Muse
)