Skip to content

Commit

Permalink
Fix ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Oct 11, 2023
1 parent 2c540e6 commit 6b0d268
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
allow_failure: true
steps:
- uses: actions/checkout@v3
- name: Create a new branch for test logs
run: |
if [[ ${{ matrix.version }} == '1' ]]; then
git config --local user.name lbonaldo
git config --local user.email "[email protected]"
git checkout ${GITHUB_REF#refs/heads/}-testlogs 2>/dev/null || git checkout -b ${GITHUB_REF#refs/heads/}-testlogs
fi
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -39,11 +46,6 @@ jobs:
- name: Commit logs and push to repo # only for 1.x versions
run: |
if [[ ${{ matrix.version }} == '1' ]]; then
git config --local user.name lbonaldo
git config --local user.email "[email protected]"
git checkout ${GITHUB_REF#refs/heads/}
git checkout -b ${GITHUB_REF#refs/heads/}-testlogs
git pull origin ${GITHUB_REF#refs/heads/}-testlogs
git add -f test/Logs
git commit -m "Test logs updated"
git push origin ${GITHUB_REF#refs/heads/}-testlogs
Expand Down

0 comments on commit 6b0d268

Please sign in to comment.