Skip to content

Mirror

Mirror #208

Workflow file for this run

name: Mirror
on:
schedule:
- cron: "0 8 * * 1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release:
name: Mirror update
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Commit changes if there are any
run: |
git config --global user.name "GitHub Action"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global pull.ff only
git config --global pull.rebase false
bash mirror.sh
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_PAT }}
branch: ${{ github.ref }}