Skip to content

Commit eb3c6e1

Browse files
committed
Merge branch 'main' of github.com:sblelong/polytex
2 parents 3c61eab + f6320d2 commit eb3c6e1

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}"

0 commit comments

Comments
 (0)