Skip to content
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

Separate test & lint and container build workflows for actions so that they can be triggered separately #14

Open
rascasoft opened this issue Sep 5, 2023 · 1 comment

Comments

@rascasoft
Copy link
Member

Creating two workflow yml files instead of one, we can have kpa_generator trigger just the container build, since there's no big deal in having the lint and test repeated with no code changes and everything should become faster.

@rascasoft
Copy link
Member Author

Have a look at this https://stackoverflow.com/questions/62750603/github-actions-trigger-another-action-after-one-action-is-completed specifically on the section:

  1. Separate workflow, using the workflow_run event as a trigger

Creating a yaml with:

# Only trigger, when the build workflow succeeded
on:
  workflow_dispatch:
  workflow_run:
    workflows: ["CI build"]
    types:
      - completed

So with both workflow_dispatch: and workflow_run: should do the trick.

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

No branches or pull requests

1 participant