File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Sync beamer-polymtl to MTH1008 repo
2+
3+ on :
4+ push :
5+ paths :
6+ - ' **.cls' # triggers only when a .bib file changes
7+ workflow_dispatch : # allow manual triggering too
8+
9+ jobs :
10+ sync :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Clone Overleaf project
16+ run : |
17+ git clone "https://${{ secrets.OVERLEAF_MTH1008_USER }}:${{ secrets.OVERLEAF_MTH1008_TOKEN }}@${{ secrets.OVERLEAF_MTH1008_URL }}" overleaf
18+ - name : Copy .cls file
19+ run : |
20+ cp beamer-polymtl.cls overleaf/beamer-polymtl.cls
21+ - name : Commit and push to Overleaf
22+ run : |
23+ cd overleaf
24+ git config user.name "git"
25+ git config user.email "action@github.com"
26+ git add ./beamer-polymtl.cls
27+ git commit -m "Auto-sync beamer-polymtl template" || echo "No changes to commit"
28+ git push "https://${{ secrets.OVERLEAF_MTH1008_USER }}:${{ secrets.OVERLEAF_MTH1008_TOKEN }}@${{ secrets.OVERLEAF_MTH1008_URL }}"
You can’t perform that action at this time.
0 commit comments