Skip to content

Commit

Permalink
Added auomatic plot upload in ci/cd (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch authored May 2, 2024
1 parent ccea588 commit 34d5187
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/push-plots-to-paper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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)
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cache*.tar
cache.tar
output.txt
replay_logs/
my.secrets

output/
merge_repo/
Expand Down

0 comments on commit 34d5187

Please sign in to comment.