Skip to content

Commit 838cd39

Browse files
committed
ci(fork repos): Do not create banches and commits in forks
It only clutters the fork repos with unused branches
1 parent 5ff9fc1 commit 838cd39

9 files changed

+18
-0
lines changed

.github/workflows/ai-translation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ permissions:
1919

2020
jobs:
2121
extract_strings:
22+
# Do not run in forks it only clutters the fork repos with unused branches
23+
if: github.repository == 'ArduPilot/MethodicConfigurator'
2224
permissions:
2325
contents: write # for creating branches and commits
2426
pull-requests: write # for creating PRs

.github/workflows/update_codebase_chart.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ permissions:
1414

1515
jobs:
1616
update-stats:
17+
# Do not run in forks it only clutters the fork repos with unused branches
18+
if: github.repository == 'ArduPilot/MethodicConfigurator'
1719
runs-on: ubuntu-latest
1820
permissions:
1921
contents: write # for creating branches and commits

.github/workflows/update_configuration_steps_translation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ permissions:
2323

2424
jobs:
2525
update-strings:
26+
# Do not run in forks it only clutters the fork repos with unused branches
27+
if: github.repository == 'ArduPilot/MethodicConfigurator'
2628
permissions:
2729
contents: write # for creating branches and commits
2830
pull-requests: write # for creating PRs

.github/workflows/update_copyright_year.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ permissions:
1717

1818
jobs:
1919
update-copyright:
20+
# Do not run in forks it only clutters the fork repos with unused branches
21+
if: github.repository == 'ArduPilot/MethodicConfigurator'
2022
permissions:
2123
contents: write # for creating branches and commits
2224
pull-requests: write # for creating PRs

.github/workflows/update_flightcontroller_ids.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ permissions:
1010

1111
jobs:
1212
update-ids:
13+
# Do not run in forks it only clutters the fork repos with unused branches
14+
if: github.repository == 'ArduPilot/MethodicConfigurator'
1315
permissions:
1416
contents: write # for Git to git push
1517
pull-requests: write # for creating PRs

.github/workflows/update_magfit_pdef_xml.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions:
1212

1313
jobs:
1414
update-magfit-pdef-xml:
15+
# Do not run in forks it only clutters the fork repos with unused branches
16+
if: github.repository == 'ArduPilot/MethodicConfigurator'
1517
permissions:
1618
contents: write # for creating branches and commits
1719
pull-requests: write # for creating PRs

.github/workflows/update_motor_diagrams.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ permissions:
1010

1111
jobs:
1212
update-diagrams:
13+
# Do not run in forks it only clutters the fork repos with unused branches
14+
if: github.repository == 'ArduPilot/MethodicConfigurator'
1315
permissions:
1416
contents: write # for Git to git push
1517
pull-requests: write # for creating PRs

.github/workflows/update_vehicle_components_translation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ permissions:
2525

2626
jobs:
2727
update-strings:
28+
# Do not run in forks it only clutters the fork repos with unused branches
29+
if: github.repository == 'ArduPilot/MethodicConfigurator'
2830
permissions:
2931
contents: write # for creating branches and commits
3032
pull-requests: write # for creating PRs

.github/workflows/update_vehicle_templates.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ permissions:
2020

2121
jobs:
2222
update-templates:
23+
# Do not run in forks it only clutters the fork repos with unused branches
24+
if: github.repository == 'ArduPilot/MethodicConfigurator'
2325
runs-on: windows-latest
2426
permissions:
2527
contents: write # for creating branches and commits

0 commit comments

Comments
 (0)