-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added auomatic plot upload in ci/cd (#281)
- Loading branch information
1 parent
ccea588
commit 34d5187
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
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) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ cache*.tar | |
cache.tar | ||
output.txt | ||
replay_logs/ | ||
my.secrets | ||
|
||
output/ | ||
merge_repo/ | ||
|