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

Trigger downstream CI based on file change #53

Closed
paulzierep opened this issue Feb 7, 2024 · 5 comments
Closed

Trigger downstream CI based on file change #53

paulzierep opened this issue Feb 7, 2024 · 5 comments

Comments

@paulzierep
Copy link
Collaborator

I tried to set-up the CI jobs so that downstream workflows are executed based on file change.
E.g.: The filter communities workflow should be triggered when the all_tools.tsv file is changed, probably by the fetch_all_tools.yaml workflow, that is executed weekly.
But so far the workflow is not executed automatically. The workflow itself works fine, e.g. when triggered via the workflow_dispatch option, but it is not automatically triggered by file change.

@paulzierep
Copy link
Collaborator Author

@nsoranzo do you have an idea about this

@paulzierep
Copy link
Collaborator Author

Seems like one needs to specify a branch for this

  push:
    paths:
    - 'results/all_tools.tsv'
    branches: ["main"]

works

@paulzierep paulzierep reopened this Mar 4, 2024
@paulzierep
Copy link
Collaborator Author

paulzierep commented Mar 4, 2024

In fact, it does not work. It seems that CIs that interact with github and use the github_token as credentials do not subsequent actions.
https://github.com/orgs/community/discussions/25702
However, we can use the workflows_run event to get what we want https://stackoverflow.com/questions/62750603/github-actions-trigger-another-action-after-one-action-is-completed

I propose to trigger fetch_all_tools.yaml weekly and
the filter_communities.yaml as well as static.yml as subsequent workflows_run and
for each PR which changes data/communities (this will update the table and community results if a new community is added immediately)

@nsoranzo
Copy link
Member

nsoranzo commented Mar 4, 2024

@paulzierep Did you have a look at #62 ?

@paulzierep
Copy link
Collaborator Author

paulzierep commented Mar 4, 2024

Thanks @nsoranzo that should indeed also work !

@paulzierep paulzierep reopened this Mar 4, 2024
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