refactor: Wait for PR status checks when pushing benchmarks (#1050)

* refactor: skip PR status checks when pushing benchmarks

* refactor: wait for status checks
This commit is contained in:
Juro Oravec 2025-03-20 16:43:50 +01:00 committed by GitHub
parent 293b933aaa
commit a2aa743947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,11 +141,14 @@ jobs:
PR_URL="$(gh pr create --title "chore: Add benchmark results for ${TAG}" --body "Add benchmark results for ${TAG}" --base master)"
echo "PR URL: ${PR_URL}"
# 4. Merge the PR and delete the branch
# 4. Wait for the PR status checks to pass
gh pr checks "${PR_URL}" --watch
# 5. Merge the PR and delete the branch
gh pr merge "${PR_URL}" --admin --squash --delete-branch
echo "Benchmark results pushed to master."
# 5. Go back to the original branch
# 6. Go back to the original branch
git checkout master
git pull origin master