-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Prevent debug UI action from showing up in forked OTP projects #6402
base: dev-2.x
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6402 +/- ##
==========================================
Coverage 69.73% 69.73%
+ Complexity 18023 18021 -2
==========================================
Files 2057 2057
Lines 76978 76978
Branches 7845 7845
==========================================
Hits 53678 53678
Misses 20550 20550
Partials 2750 2750 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The title is slightly misleading as this only prevents the workflow being run in a fork if the fork doesn't use the same branch naming convention as upstream. Unfortunately I don't think there is a way to define on which repositories the action should run on (apart from the repository owner check that we already do here but with that solution the workflow still starts but is then aborted).
@@ -2,6 +2,8 @@ name: Debug client | |||
|
|||
on: | |||
push: | |||
branches: | |||
- dev-2.x | |||
paths: | |||
- 'client/**' | |||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add the same branch restriction here.
Summary
This action is run today in entur downstream fork when someone changes a file under
/client/**
. The action is aborted, but it clutter up the list of run actions. I am not an expert on workflows, but I chaned it slightly so the trigger now filter on both path and branch for pushes. This also make the script a bit cleaner, since the branch filter does not need to be repeated in the run section.Issue
🟥 There is no issue for this.
Unit tests
🟥 This is CI config change, we do not have tests for this.
Documentation
🟥 I have not changed/added doc.
Changelog
🟥 Not relevant
Bumping the serialization version id
🟥 There is no changes to the OTP code.