From c1b5f703185d948e9b2ed468bf2dbaaaeb353b3d Mon Sep 17 00:00:00 2001 From: Cyberes <64224601+Cyberes@users.noreply.github.com> Date: Mon, 12 Aug 2024 19:45:56 -0600 Subject: [PATCH] Create mirror.yml --- .github/workflows/mirror.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/mirror.yml 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 }}