Skip to content

Commit a43d39b

Browse files
authored
Merge pull request #2 from columnflow/overleaf_sync
action to syncronize with overleaf every 5 min
2 parents 59ac70c + 7963282 commit a43d39b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
schedule:
3+
- cron: "*/5 * * * *"
4+
workflow_dispatch:
5+
6+
name: "Sync overleaf"
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Sync overleaf
13+
run: |
14+
git remote add overleaf https://git:${OVERLEAF_TOKEN}@git.overleaf.com/65df171af9ff7989580f017d
15+
git remote add origin_token https://git:${GITHUB_TOKEN}@github.com/columnflow/demo_documentation.git
16+
17+
git fetch overleaf
18+
git pull overleaf master
19+
git push origin_token HEAD:sync_overleaf
20+
21+
env:
22+
OVERLEAF_TOKEN: ${{ secrets.OVERLEAF_TOKEN }}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)