diff options
Diffstat (limited to '.github/workflows/mirror.yml')
| -rw-r--r-- | .github/workflows/mirror.yml | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index f85936a..9fed247 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,15 +1,25 @@ name: Mirror -on: [push] + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read jobs: mirror: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: yesolutions/mirror-action@master - with: - REMOTE: 'https://git.popov.link/popov.link.git' - GIT_USERNAME: ${{ secrets.GIT_USERNAME }} - GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - name: Mirror to remote repository + uses: yesolutions/mirror-action@master + with: + REMOTE: "https://git.popov.link/popov.link.git" + GIT_USERNAME: ${{ secrets.GIT_USERNAME }} + GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} |
