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

Referencing another actions file #26

Open
vincent-thomas opened this issue Feb 22, 2022 · 1 comment
Open

Referencing another actions file #26

vincent-thomas opened this issue Feb 22, 2022 · 1 comment

Comments

@vincent-thomas
Copy link

Lets say i have a ./.github/workflows/main.yml file, this file runs all the pull-request checks and tests. But then i have another workflow file (./.github/workflows/other.yml). I would like to run this workflow other.yml after this workflow main.yml. But other.yml would only run if main.yml does not fail. How would i implement that with this action? I could not find any documentation of how to implement this outside one file. The reason i would like to do this with two files is because they have different events. And if i combine them it would be like a circular dependencies.

Can anybody clear things up for me? Sorry if its a stupid question because in kinda newbie in ci/cd

@verdx
Copy link

verdx commented Feb 2, 2023

You can call other.yml from main.yml if the other jobs succeed, here you have the documentation for it.

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

2 participants