Merge pull request #14075 from gavindsouza/roulette-gha-push

fix(ci): Run all builds on github push events
This commit is contained in:
gavin 2021-08-30 17:22:48 +05:30 committed by GitHub
commit 8bd1b05727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,12 @@ if __name__ == "__main__":
pr_number = os.environ.get("PR_NUMBER")
repo = os.environ.get("REPO_NAME")
if not files_list and pr_number:
files_list = get_files_list(pr_number=pr_number, repo=repo)
# this is a push build, run all builds
if not pr_number:
os.system('echo "::set-output name=build::strawberry"')
sys.exit(0)
files_list = files_list or get_files_list(pr_number=pr_number, repo=repo)
if not files_list:
print("No files' changes detected. Build is shutting")