Skip to content

Commit

Permalink
Add support for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Mar 8, 2024
1 parent 1fd0b90 commit d601c08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/coverage.yaml
@@ -1,6 +1,8 @@
name: coverage

on: [push]
on:
push:
pull_request_target:

permissions:
contents: read
Expand All @@ -18,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch == 'main' && 'main' || '' }}
ref: ${{ matrix.branch == 'main' && 'main' || (github.event.pull_request && format('refs/pull/{0}/merge', github.event.pull_request.number)) || '' }}

- name: Bazel cache
id: bazel-cache
Expand Down

0 comments on commit d601c08

Please sign in to comment.