Closed awaelchli closed 1 month ago
But, one is for pull_request
and the other is for push
.
I guess, When your PR checks were running, the PR was merged and triggered a push CI action too.
Sorry, I just observed this behavior. For a small nitpick fix, I coded on github and opened a PR.
In this case, it did run pull_request
and push
CI.
# .github/workflows/ci-testing.yml
name: CI testing
on: # Trigger the workflow on push or pull request, but only for the main branch
push: {}
pull_request:
branches: [main]
push runs on all branches. So, when we code on litdata github repo and make a pr, a push CI runs and since making a PR for main pull_request CI runs.
The fix is:
# .github/workflows/ci-testing.yml
name: CI testing
on:
push:
branches: [main]
pull_request:
branches: [main]
I'm making a wild guess. If it's correct, I'll make the PR.
Hey @deependujha Go for the fix.
Probably a configuration issue. The CI triggers all jobs twice on a PR:
Example: https://github.com/Lightning-AI/litdata/pull/217