8000 Detect workflow event type by sosedoff · Pull Request #35 · nektos/act · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Detect workflow event type #35

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

Merged
merged 2 commits into from
Feb 17, 2019
Merged

Detect workflow event type #35

merged 2 commits into from
Feb 17, 2019

Conversation

sosedoff
Copy link
Contributor

So this is implementation for my latest comment in #32.
Act will detect the event type from the workflow file only if there's a single workflow in the file.

workflow "test" {
  on = "pull_request"
  resolves = ["task"]
}

task "foo" {
  // ... details
}

When running act it will run all the tasks for the pull_request event. Will add tests as well.

Copy link
Contributor
@cplee cplee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, thank you!

@cplee cplee merged commit 7fcacaa into nektos:master Feb 17, 2019
makrsmark pushed a commit to makrsmark/act that referenced this pull request Aug 3, 2023
Related to nektos#33

Reviewed-on: https://gitea.com/gitea/act/pulls/35
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0