Skip to content

Commit

Permalink
bug fix: forward secrets to action
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Keicher committed Oct 16, 2024
1 parent 89260aa commit 6b3ae8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/push_to_overleaf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- master
workflow_dispatch:

permissions:
contents: write
Expand All @@ -22,6 +23,9 @@ jobs:
git remote add origin_token https://git:${GITHUB_TOKEN}@github.com/columnflow/demo_docs.git
git push origin_token HEAD:sync_overleaf
env:
OVERLEAF_TOKEN: ${{ secrets.OVERLEAF_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_overleaf:
runs-on: ubuntu-latest
Expand All @@ -36,4 +40,7 @@ jobs:
git remote add overleaf https://git:${OVERLEAF_TOKEN}@git.overleaf.com/65df171af9ff7989580f017d
git push overleaf HEAD:master
env:
OVERLEAF_TOKEN: ${{ secrets.OVERLEAF_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6b3ae8b

Please sign in to comment.