Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip cache delete job for forked PRs #1137

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ jobs:
needs:
- test_22_unit
- test_22_extra_diagnose
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork
== false
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand Down Expand Up @@ -342,6 +344,8 @@ jobs:
needs:
- test_20_unit
- test_20_extra_diagnose
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork
== false
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand Down Expand Up @@ -458,6 +462,8 @@ jobs:
needs:
- test_18_unit
- test_18_extra_diagnose
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork
== false
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ namespace :build_matrix do
unit_test_job_key,
diagnose_job_key
],
# Skip this job for dependabot and forked PRs as they do not
# have write permissions to the repository to delete caches
"if" => "github.actor != 'dependabot[bot]' && " \
"github.event.pull_request.head.repo.fork == false",
"runs-on" => "ubuntu-latest",
"steps" => [
{
Expand Down
Loading