From 8c6319b7ea6d28778f2d0a7cd420593434f4624c Mon Sep 17 00:00:00 2001 From: lbonaldo Date: Wed, 15 Nov 2023 12:30:12 -0500 Subject: [PATCH] Fix ci.yml to push to testlog --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a41970e37a..3c0c68c7ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,11 @@ 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: | @@ -36,17 +41,15 @@ jobs: 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 "84470580+GenXProject@users.noreply.github.com" - git remote add testlog https://$LOG_TOKEN@github.com/GenXProject/GenX-testlog.git + git config --global user.email "39280783+lbonaldo@users.noreply.github.com" + 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 }}