mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-04 08:30:27 +03:00
- 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.
26 lines
546 B
YAML
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 }}
|