-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support for :workflow_file_name #2
Comments
I tried using the name and it didn’t work when I created this repo. I’ll have to try again to see if it works with the name. Also, I kinda like the ID to avoid the situation when a workflow is renamed and the cancel action breaks. Lastly, “name” is ambiguous because it could mean the yml file name or the name property defined in the file. |
You could use the Edit: I guess I could also just use that as the value for the input argument. |
I don't think See the Usage in the readme for an example. The Also see this repo which uses this pattern: https://github.com/styfle/cancel-workflow-action/tree/master/.github/workflows |
Ah, I see |
It would be great if we can support this feature. We're programmatically creating the workflow files and commit them into the repositories so we need to commit, perform an API call in our app from the master to Github API and use the id in order to perform another commit which is a bit painful. Not sure which API tried but in our tests, the API accepts a workflow file name in addition to IDs. Can you please try if that's the case for you? |
Couldn’t we put this inside the workflow we want to cancel and then have it know to cancel itself? Otherwise renaming workflows will have unexpected side-effects. |
@mxcl Workflow actions have access to the info of the changed files so in case a file is renamed, we can find out the previous name and cancel the actions. |
In version 0.4.0, you no longer need to provide a workflow id. Does this solve the original problem? |
@styfle That is exactly the functionality I was asking for :) |
It would be great if this action could allow for :workflow_file_name as an alternative to :workflow_id.
This seems to be support by the API and github's javascript library as specified in https://developer.github.com/v3/actions/workflows/#get-a-workflow and would avoid having to make seperate API calls to find out the ID.
The text was updated successfully, but these errors were encountered: