Mirror Repository #17413
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 fetch https://github.com/IntersectMBO/cardano-haskell-packages.git repo | |
git reset --hard FETCH_HEAD | |
git push --force-with-lease origin repo |