@@ 1,14 1,19 @@
on:
+ push:
+ branches:
+ - __mirror
schedule:
- - cron: "*/15 * * * *"
+ - cron: '*/15 * * * *'
workflow_dispatch:
jobs:
- repo-sync:
+ mirror:
runs-on: ubuntu-latest
+ name: mirror
steps:
- - uses: actions/checkout@v2
- - name: sync
- run: |
- find . -mindepth 1 -delete
- git clone https://git.arthurmelton.com/greynoise-cli .
+ - name: mirror
+ id: mirror
+ uses: bridgelightcloud/github-mirror-action@v1
+ with:
+ origin: 'https://git.arthurmelton.com/greynoise-cli'
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}