workflow-dispatch | GitHub Action for triggering workflows | Continous Integration library
kandi X-RAY | workflow-dispatch Summary
kandi X-RAY | workflow-dispatch Summary
A GitHub Action for triggering workflows, using the `workflow_dispatch` event
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of workflow-dispatch
workflow-dispatch Key Features
workflow-dispatch Examples and Code Snippets
Community Discussions
Trending Discussions on workflow-dispatch
QUESTION
I am trying to trigger the workflow_dispatch
action for a GitHub workflow via REST but I am getting a "not found" error.
My question is similar to this one but the difference is that I am still getting the "not found" error even though the header indicates I am authenticated (the rate limit has increased to 5,000).
Here's my script:
...ANSWER
Answered 2022-Jan-17 at 11:10The machine user needs to have write
access, not read
access.
This is true even if the workflow does something like run CI tests and does not write any code.
QUESTION
I create simple github action with workflow_dispatch.
...ANSWER
Answered 2021-Nov-18 at 14:05It seems you are confusing 2 workflows triggers event that are available on Github Actions.
The workflow_dispatch
and the repository_dispatch
event.
To trigger a workflow_dispatch
event remotely, you need to use the following endpoint:
QUESTION
I am trying to execute a github workflow via the CLI, on a particular branch. The documentation for this is available here https://cli.github.com/manual/gh_workflow_run
Is it possible to somehow get the same kind of logs you get with the browser UI in the terminal? I would like to programmatically interact with it.
If its possible with their rest api, then that is even better.
https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event As per the docs, it just returns a Status: 204 No Content
.
ANSWER
Answered 2021-Nov-09 at 20:17It's possible to do trigger a workflow remotely using the Github API with the dispatch_event API you mentioned.
The Github CLI have various command for workflow (to run
, list
, view
, enable
ou disable
). You can find more information on the official documentation
To get the logs from the Github CLI, as explained here, you can use commands such as:
QUESTION
I am working on GitHub actions, and I have a case where I need to send a multiline string as json. I am getting some unexpected token error.
This is my test.md and workflow:
...ANSWER
Answered 2021-Sep-16 at 15:59There seem to be 2 issues you have in provided example.
- your string substitution seems invalid. that should be something like this.
QUESTION
I have a private GitHub repository hosted in a GitHub organization.
The repo contains a GitHub Action with the workflow_dispatch
option
(cf. GitHub Documentation).
Excerpt from the Action YAML file:
...ANSWER
Answered 2021-Jun-07 at 20:09following this instruction https://goobar.dev/manually-trigger-a-github-actions-workflow/ you do probably most of it correct
try to run it on LINUX with
curl -H "Accept: application/vnd.github+json" -H "Authorization: token your-token" --request POST --data '{"event_type": "do-something"}' https://api.github.com/repos/yourname/yourrepo/dispatches
On Windows: cURL POST command does not work on Windows Command Prompt because single quotes are used see https://github.com/spring-guides/gs-accessing-data-rest/issues/11
QUESTION
I'm building a CLI which triggers an Action (using workflow_dispatch
) in my repository. I'm using Github API to perform this task. Taken from the docs:
You must authenticate using an access token with the repo scope to use this endpoint.
I've generated a PAT with repo
scope to authenticate myself. I want users to run this CLI. Is it safe to share this PAT (which has repo
as the only scope)?
p.s. I know it is ironical to ask if "Personal"-access-token can be "shared". But I don't see any problem it can cause with its limited scope.
...ANSWER
Answered 2021-Apr-09 at 08:08I don't think it is a good idea. Repo scope is not limited to only one repo.
If you want to trigger actions by external users, your best bet would probably be to create a workflow running on PR or Issue events.
- Allow your users to create issues
- Monitor keywords or label on the issue
- Trigger your action.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install workflow-dispatch
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page