Skip to content

Commit 6b3ae8b

Browse files
author
Philip Keicher
committed
bug fix: forward secrets to action
1 parent 89260aa commit 6b3ae8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/push_to_overleaf.yml

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches:
44
- master
5+
workflow_dispatch:
56

67
permissions:
78
contents: write
@@ -22,6 +23,9 @@ jobs:
2223
git remote add origin_token https://git:${GITHUB_TOKEN}@github.com/columnflow/demo_docs.git
2324
2425
git push origin_token HEAD:sync_overleaf
26+
env:
27+
OVERLEAF_TOKEN: ${{ secrets.OVERLEAF_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2529

2630
update_overleaf:
2731
runs-on: ubuntu-latest
@@ -36,4 +40,7 @@ jobs:
3640
git remote add overleaf https://git:${OVERLEAF_TOKEN}@git.overleaf.com/65df171af9ff7989580f017d
3741
3842
git push overleaf HEAD:master
43+
env:
44+
OVERLEAF_TOKEN: ${{ secrets.OVERLEAF_TOKEN }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3946

0 commit comments

Comments
 (0)