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

Restrict GitHub Actions to run only on opensearch-build repo #3929

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

gaiksaya
Copy link
Member

Description

Restricts GitHub Actions to only run on this repo. This prevents from running the jobs on 200+ forked build repos.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #3929 (6f69694) into main (e57c2a8) will not change coverage.
Report is 3 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3929   +/-   ##
=======================================
  Coverage   92.05%   92.05%           
=======================================
  Files         187      187           
  Lines        5667     5667           
=======================================
  Hits         5217     5217           
  Misses        450      450           

Copy link
Contributor

@jordarlu jordarlu left a comment

Choose a reason for hiding this comment

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

Hi, @gaiksaya , will there be any chance that other Repos may be applicable in the future as well? maybe we can do
if: github.repository in ['opensearch-project/opensearch-build'] instead ? easier to add other repos when needed ? thanks

@gaiksaya
Copy link
Member Author

Hi, @gaiksaya , will there be any chance that other Repos may be applicable in the future as well? maybe we can do if: github.repository in ['opensearch-project/opensearch-build'] instead ? easier to add other repos when needed ? thanks

We don't want these workflows to run in other repos ever. If you want to run them in forks just comment out these lines and you are good to go. These workflows are specific to release and version increment.

@gaiksaya gaiksaya merged commit 885320b into opensearch-project:main Aug 28, 2023
13 checks passed
@gaiksaya gaiksaya deleted the maintainer branch August 28, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants