-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
action to syncronize with overleaf every 5 min
- Loading branch information
Philip Keicher
committed
Oct 16, 2024
1 parent
59ac70c
commit 7963282
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
on: | ||
schedule: | ||
- cron: "*/5 * * * *" | ||
workflow_dispatch: | ||
|
||
name: "Sync overleaf" | ||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Sync overleaf | ||
run: | | ||
git remote add overleaf https://git:${OVERLEAF_TOKEN}@git.overleaf.com/65df171af9ff7989580f017d | ||
git remote add origin_token https://git:${GITHUB_TOKEN}@github.com/columnflow/demo_documentation.git | ||
git fetch overleaf | ||
git pull overleaf master | ||
git push origin_token HEAD:sync_overleaf | ||
env: | ||
OVERLEAF_TOKEN: ${{ secrets.OVERLEAF_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |