Skip to content

Commit e970f7d

Browse files
committed
tools: keep OpenSSL update PRs in draft until arch configs committed
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
1 parent 1f26576 commit e970f7d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/update-openssl.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
2929
- name: Create PR with first commit
30+
id: create-pull-request
3031
if: env.NEW_VERSION
3132
uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1
3233
# Creates a PR with the new OpenSSL source code committed
@@ -41,6 +42,7 @@ jobs:
4142
title: 'deps: update OpenSSL to ${{ env.NEW_VERSION }}'
4243
path: deps/openssl
4344
update-pull-request-title-and-body: true
45+
draft: true
4446
- name: Regenerate platform specific files
4547
if: env.NEW_VERSION
4648
run: |
@@ -59,3 +61,9 @@ jobs:
5961
branch: actions/tools-update-openssl # Custom branch *just* for this Action.
6062
commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
6163
path: deps/openssl
64+
- name: Mark PR as ready for review
65+
if: env.NEW_VERSION
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
68+
PR_ID: ${{ steps.create-pull-request.outputs.pull-request-number }}
69+
run: gh --repo "$GITHUB_REPOSITORY" pr ready "$PR_ID"

0 commit comments

Comments
 (0)