From 4e3ef508c56f43a0685517affcb99025455f8a17 Mon Sep 17 00:00:00 2001 From: lbonaldo Date: Tue, 17 Oct 2023 12:34:23 -0400 Subject: [PATCH] Fix permission on ci.yml --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d89eef62b..a41970e37a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -53,7 +54,8 @@ 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 }} @@ -61,8 +63,6 @@ jobs: 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: