Skip to content

Commit

Permalink
Fix ci.yml to push to testlog
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Nov 16, 2023
1 parent ffcb70d commit 8c6319b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,27 @@ jobs:
allow_failure: true
steps:
- uses: actions/checkout@v3
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Create a new branch and pull test logs from repo # only push logs if PR is not from a fork
if: ${{ ! github.event.pull_request.head.repo.fork }}
run: |
git checkout -b ${GITHUB_REF#refs/heads/}-testlogs
mkdir test/Logs; cd test/Logs
git config --global init.defaultBranch main
git init
git config --local user.name GenXProject
git config --local user.email "[email protected]"
git remote add testlog https://$LOG_TOKEN@github.com/GenXProject/GenX-testlog.git
git config --global user.email "[email protected]"
git config --global user.name "lbonaldo"
git remote add testlog git@github.com:lbonaldo/testlog.git
git pull testlog main
if [ -d Logs_v${{ matrix.version }} ]; then
mv Logs_v${{ matrix.version }}/*.log .
else
mkdir Logs_v${{ matrix.version }}
fi
env:
LOG_TOKEN: ${{ secrets.LOG_TOKEN }}
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand Down

0 comments on commit 8c6319b

Please sign in to comment.