0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 08:30:27 +03:00
Files
popov.link/.github/workflows/mirror.yml
Valentin Popov 15795a5337 chore: update GitHub Actions workflow for repository mirroring
- Modified the workflow trigger to include both push and pull request events on the master branch.
- Set permissions for the workflow to allow read access to contents.
2025-06-15 12:02:26 +00:00

26 lines
546 B
YAML

name: Mirror
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
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 }}