Skip to content

Commit 1610b9e

Browse files
authored
Rename default branch to main, add mirror workflow for migration (#974)
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
1 parent 1ff2c80 commit 1610b9e

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Auto merge
22

33
on:
44
pull_request:
5-
branches: master
5+
branches: [main]
66
pull_request_review:
77
types:
88
- submitted

.github/workflows/mirror.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
3+
name: Mirror branch main to master
4+
5+
on:
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
mirror-to-master:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: zofrex/mirror-branch@v1
14+
with:
15+
target-branch: master

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ name: "Test action-ros-ci"
22
on:
33
pull_request:
44
push:
5-
branches:
6-
- master
7-
- "releases/*"
5+
branches: [main]
86
schedule:
9-
# Run the CI automatically twice per day to look for flakyness.
10-
- cron: "0 */12 * * *"
7+
# Run the CI automatically nightly to catch flakes
8+
- cron: "0 0 * * *"
119

1210
defaults:
1311
run:

0 commit comments

Comments
 (0)