forked from I2P_Developers/i2p.www
Add CI file which syncs github from gitlab
This commit is contained in:
23
.github/workflows/github-sync.yml
vendored
Normal file
23
.github/workflows/github-sync.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# File: .github/workflows/repo-sync.yml
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/5 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
repo-sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: repo-sync
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: repo-sync/github-sync@v2
|
||||
with:
|
||||
source_repo: "https://i2pgit.org/i2p-hackers/i2p.www"
|
||||
source_branch: "master"
|
||||
destination_branch: "master"
|
||||
github_token: ${{ secrets.PAT }}
|
Reference in New Issue
Block a user