diff --git a/.github/workflows/unittest-post.yml b/.github/workflows/unittest-post.yml index 0c00073ea0..c18584ab55 100644 --- a/.github/workflows/unittest-post.yml +++ b/.github/workflows/unittest-post.yml @@ -7,12 +7,14 @@ on: - completed permissions: - contents: read + contents: write actions: read + pull-requests: write statuses: write jobs: post-unitests: + if: github.event.workflow_run.head_repository.full_name == github.repository runs-on: ubuntu-latest timeout-minutes: 10 steps: @@ -21,9 +23,8 @@ jobs: - name: Download benchmarks uses: dawidd6/action-download-artifact@d63b86af1b34672e53c440b1b83979861906bad7 # v24 with: - # This is the workflow that triggered this run - workflow: ${{ github.event.workflow.id }} - workflow_conclusion: success + # This is the run that triggered this workflow + run_id: ${{ github.event.workflow_run.id }} name: delta-action-benchmarks github_token: ${{ secrets.GITHUB_TOKEN }} - name: Get PR number diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 251e597911..858761b563 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -59,6 +59,7 @@ jobs: name: delta-action-benchmarks retention-days: 7 if-no-files-found: error + include-hidden-files: true path: | .delta.* pr_number