Skip to content

Commit 4d5aa2e

Browse files
authored
Create mirror.yml
1 parent 686cd66 commit 4d5aa2e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/mirror.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Mirror Repository
2+
3+
on:
4+
schedule:
5+
# Runs at the start of every hour
6+
- cron: '0 * * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
mirror:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout target repository
15+
uses: actions/checkout@v2
16+
with:
17+
ref: 'repo'
18+
19+
- name: Sync with source repository
20+
run: |
21+
git remote add source https://github.com/IntersectMBO/cardano-haskell-packages.git
22+
git fetch source
23+
git reset --hard source/repo
24+
git push origin repo
25+

0 commit comments

Comments
 (0)