Skip to content

Building AI agents, atomically

Update python-publish.yml

Kenny Vaneetvelde95ba0c701100
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
index 0f4fb53..27a02cf 100644
--- a/.github/workflows/python-publish.yml
+++ b/.github/workflows/python-publish.yml
@@ -57,7 +57,12 @@ jobs:
- name: Merge Pull Request
run: |
- gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --squash --admin --delete-branch
+ if [ -n "${{ steps.cpr.outputs.pull-request-number }}" ]; then
+ gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --squash --admin --delete-branch
+ else
+ echo "No pull request found to merge."
+ exit 1
+ fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}