Skip to content

Commit 7fe006d

Browse files
author
Philip Keicher
committed
workflow to push to overleaf repo
1 parent c06cb2a commit 7fe006d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
issues: write
10+
11+
name: "Push to overleaf"
12+
jobs:
13+
update_sync_overleaf:
14+
runs-on: ubuntu-latest
15+
name: Update branch 'sync_overleaf'
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: '0'
20+
- name: Push to overleaf
21+
run: |
22+
git remote add origin_token https://git:${GITHUB_TOKEN}@github.com/columnflow/demo_docs.git
23+
24+
git push --rebase origin_token HEAD:sync_overleaf
25+
26+
update_overleaf:
27+
runs-on: ubuntu-latest
28+
name: Update overleaf
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
ref: sync_overleaf
33+
fetch-depth: '0'
34+
- name: Push to overleaf
35+
run: |
36+
git remote add overleaf https://git:${OVERLEAF_TOKEN}@git.overleaf.com/65df171af9ff7989580f017d
37+
38+
git push --rebase overleaf HEAD:master
39+

0 commit comments

Comments
 (0)