Skip to content

Commit 1e237ba

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'mirror-master-and-main'
For some transitional period, let's mirror `main` to `master`. In the end, we want only `main`. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents ea73b63 + 9d23891 commit 1e237ba

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Mirror "master" and "main" branches
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
8+
jobs:
9+
mirror:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Partial clone
13+
env:
14+
ref: ${{ github.event.ref }}
15+
run: git clone --bare --depth=100 --single-branch --branch ${ref#refs/heads/} --filter=blob:none ${{ github.event.repository.html_url }} .
16+
- name: Push
17+
run: |
18+
git config http.https://github.com/.extraheader "Authorization: Basic $(echo -n x-access-token:${{ github.token }} | base64 --wrap=0)"
19+
git push origin HEAD:master HEAD:main

0 commit comments

Comments
 (0)