diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..1fa4804 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,22 @@ +name: 'Mirror' +on: + push: + branches: + - __mirror + schedule: + - cron: '* 3 * * *' + workflow_dispatch: + +jobs: + Mirror: + runs-on: ubuntu-latest + name: mirror + steps: + - name: Fix git safe.directory in container + run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig + - name: mirror + id: mirror + uses: bridgelightcloud/github-mirror-action@v1 + with: + origin: 'https://git.evulid.cc/cyberes/proxy-loadbalancer.git' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}