CI: use github actions to sync FROM i2pgit.org TO github.com instead of running a script on my server. PAT is not generated yet due to the need to determine what permissions it needs. This job will fail on the github side until I add the PAT.

This commit is contained in:
eyedeekay
2024-04-22 14:42:15 -04:00
parent 33b9317d37
commit b29be88d08

21
.github/workflows/github-sync.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
# 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
uses: repo-sync/github-sync@v2
with:
source_repo: "https://i2pgit.org/i2p-hackers/i2p.i2p"
source_branch: "master"
destination_branch: "master"
github_token: ${{ secrets.PAT }}