Skip to content

Commit

Permalink
Move codecov action to separate pull_request_target workflow
Browse files Browse the repository at this point in the history
Should mean CI can get green on forked PRs.
  • Loading branch information
CGA1123 committed Nov 22, 2024
1 parent ade2d37 commit acdb1af
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:

jobs:
build:
permissions:
contents: write
id-token: write

runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Codecov

on:
push:
branches: [ master ]
pull_request_target:
branches: [ master ]

jobs:
codecov:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
name: Codecov
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- uses: codecov/codecov-action@v4
with:
use_oidc: true

0 comments on commit acdb1af

Please sign in to comment.