-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (30 loc) · 1.06 KB
/
push-plots-to-paper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Update Overleaf with Plots
on:
push:
branches:
- main
jobs:
update-overleaf:
runs-on: ubuntu-latest
steps:
- uses: GuillaumeFalourd/[email protected]
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Git Config and Credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub CI/CD Bot"
- name: Create directory for Overleaf Repository
run: mkdir -p ../AST-Merging-Evaluation-Paper
- name: Clone Overleaf Repository
env:
OVERLEAF_GIT_REPO: ${{ secrets.OVERLEAF_GIT_REPO }}
run: |
git clone ${OVERLEAF_GIT_REPO} ../AST-Merging-Evaluation-Paper
- name: Run make command to copy plots
run: make copy-paper
- name: Commit and Push to Overleaf
run: |
cd ../AST-Merging-Evaluation-Paper
git add .
git diff --staged --exit-code || (git commit -m "Automated plot updates by GitHub CI/CD Bot" && git push origin master)