Skip to content

CI: make sure jobs only run on the org repo#6791

Open
abhijat wants to merge 2 commits intomainfrom
abhijat/fix/restrict-actions-on-branch
Open

CI: make sure jobs only run on the org repo#6791
abhijat wants to merge 2 commits intomainfrom
abhijat/fix/restrict-actions-on-branch

Conversation

@abhijat
Copy link
Contributor

@abhijat abhijat commented Mar 3, 2026

make sure jobs only run on the org repo (dragonflydb/dragonfly)

Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
@abhijat abhijat marked this pull request as ready for review March 4, 2026 05:32
Copilot AI review requested due to automatic review settings March 4, 2026 05:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds repository guards to several GitHub Actions workflows so the jobs only execute in the upstream dragonflydb/dragonfly repository (and are skipped in forks).

Changes:

  • Added if: github.repository == 'dragonflydb/dragonfly' at the job level across multiple scheduled/manual workflows.
  • Updated existing job conditions in package-install.yml to include the repository guard while preserving prior workflow_run / always() logic.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/regression-tests.yml Guard build and lint-test-chart jobs to only run on dragonflydb/dragonfly.
.github/workflows/package-install.yml Add upstream-repo guard to all jobs while keeping existing workflow_run/failure notification conditions.
.github/workflows/mastodon-ruby-tests.yml Guard the build-and-test job to upstream repo only.
.github/workflows/heavy-tests.yml Guard the build job to upstream repo only.
.github/workflows/fuzz-long.yml Guard the fuzz-long job to upstream repo only.
.github/workflows/epoll-regression-tests.yml Guard build and lint-test-chart jobs to upstream repo only.
.github/workflows/docker-dev-release.yml Guard build_and_tag and merge_manifest jobs to upstream repo only.
.github/workflows/daily-builds.yml Guard build and build-macos jobs to upstream repo only.
.github/workflows/cov.yml Guard the build job to upstream repo only.
.github/workflows/bullmq-tests.yml Guard the build job to upstream repo only.
.github/workflows/benchmark.yml Guard the benchmark job to upstream repo only.

@augmentcode
Copy link

augmentcode bot commented Mar 4, 2026

🤖 Augment PR Summary

Summary: This PR restricts several CI workflows to run only in the upstream dragonflydb/dragonfly repository.

Changes:

  • Added job-level if: github.repository == 'dragonflydb/dragonfly' guards across benchmark, test, build, regression, fuzz, and release workflows
  • Updated package-install jobs to combine the repository guard with existing workflow_run/failure conditions

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@abhijat abhijat enabled auto-merge (squash) March 4, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants