Create LICENSE #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |