[RFC] Run GitHub Actions only on `optuna/optuna`.
See original GitHub issueGitHub Actions are running on forked repositories (for example, https://github.com/himkt/optuna/actions).
If an example
CI fails on a forked repo, a user could receive an alert mail like the following.
Run failed for master (d6eb3a8)
Repository: himkt/optuna
Workflow: examples
Duration: 9 minutes and 51.0 seconds
Finished: 2020-04-13 15:12:06 UTC
View results: https://github.com/himkt/optuna/actions/runs/77229227
Jobs:
* build (3.5) cancelled (2 annotations)
* build (3.6) failed (1 annotation)
* build (3.7) cancelled (2 annotations)
* build (3.8) cancelled (2 annotations)
I think it doesn’t need to run GitHub Actions example
and stale
on forked repositories.
I’m wondering we can stop them using jobs.<job_id>.if
.
ref. https://github.community/t5/GitHub-Actions/Stop-github-actions-running-on-a-fork/td-p/51499
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[RFC] Create `oputna/examples` repository and move existing ...
I'll re-run git subtree split and create the optuna-example repository in the optuna organization from now. After that, the changes to the ...
Read more >[RFC] Support easy-to-use Storage in Multi-process on the ... - GitHub
Motivation In the current implementation, there is no option to run Optuna in multi process without setup such as RDB. There is a...
Read more >[RFC] Enable trial report multiple intermediate values ... - GitHub
In my case, I want to use Optuna for multi-objective optimization and it seems that pruning is one of the keys for a...
Read more >[RFC] BatchTrial that suggests and evaluates multiple ... - GitHub
I create a prototype implementation in the notebook. Alternatives (optional). We may be able to implement this feature as a helper function ...
Read more >[RFC] How to call session.query() for RDB storages #2092
Define methods of all session.query() calls in storages/_rdb/models.py . [pros] Direct access to the DB is hidden from storages/_rdb/storage.py ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for reactions, I’ll make a PR later.
@hvy Thank you for pointing out, you’re right! Let me note disabling email notification (
Settings
->Notifications
->GitHub Actions
and remove checks onEmail
) also works for a quick fix. (But this is the account-wide configuration) (I also think it would be better to avoid making collaborators update their settings manually.)I definitely agree with you.