mirror #8
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: Update GitHub Mirror | |
on: | |
#push: | |
# branches: | |
# - master # Replace with your branch name | |
schedule: | |
- cron: '0 */2 * * *' # Runs every 2 hours | |
jobs: | |
update_mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update local from upstream | |
run: | | |
git remote add upstream https://git.yoctoproject.org/meta-xilinx | |
git remote -v | |
git fetch upstream | |
git fetch --tags | |
git push origin --mirror |