Mirror Repository #13406
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mirror Repository | |
on: | |
schedule: | |
# Runs at the start of every hour | |
- cron: '*/30 * * * *' | |
workflow_dispatch: | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout target repository | |
uses: actions/checkout@v2 | |
with: | |
ref: 'repo' | |
- name: Sync with source repository | |
run: | | |
git remote add source https://github.com/IntersectMBO/cardano-haskell-packages.git | |
git fetch source | |
git reset --hard source/repo | |
git push origin repo | |