add github action for autosync

This commit is contained in:
Jörg Thalheim 2021-02-24 14:09:22 +01:00 committed by Gitea
parent ffeda392b1
commit 424b062676
2 changed files with 25 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

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

@ -0,0 +1,19 @@
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: repo-sync
uses: repo-sync/github-sync@v2
with:
source_repo: "https://git.thalheim.io/Mic92/stockholm.git"
source_branch: "master"
destination_branch: "master"
github_token: ${{ secrets.PAT }}