Skip to content

Commit

Permalink
Fix permission on ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Oct 17, 2023
1 parent f1dd10e commit 4e3ef50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
allow_failure: true
steps:
- uses: actions/checkout@v3
- name: Create a new branch and pull test logs from repo
- 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
Expand All @@ -53,16 +54,15 @@ jobs:
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- name: Commit logs and push back to repo
- name: Commit logs and push back to repo # only push logs if PR is not from a fork
if: ${{ ! github.event.pull_request.head.repo.fork }}
run: |
cd ${GITHUB_WORKSPACE}/test/Logs
mv *.log Logs_v${{ matrix.version }}
git add -f Logs_v${{ matrix.version }}
git commit -m "Update test logs for Julia v${{ matrix.version }}"
git pull --rebase testlog main # pull again to avoid conflicts from other versions
git push testlog main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 4e3ef50

Please sign in to comment.