GeezerVison is showing github.com — tools: keep OpenSSL update PRs in draft until arch configs committed · nodejs/node@adcd028
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/update-openssl.yml +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
27 | 27 | env: |
28 | 28 | GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} |
29 | 29 | - name: Create PR with first commit |
| 30 | + id: create-pull-request |
30 | 31 | if: env.NEW_VERSION |
31 | 32 | uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1 |
32 | 33 | # Creates a PR with the new OpenSSL source code committed |
|
41 | 42 | title: 'deps: update OpenSSL to ${{ env.NEW_VERSION }}' |
42 | 43 | path: deps/openssl |
43 | 44 | update-pull-request-title-and-body: true |
| 45 | + draft: true |
44 | 46 | - name: Regenerate platform specific files |
45 | 47 | if: env.NEW_VERSION |
46 | 48 | run: | |
|
59 | 61 | branch: actions/tools-update-openssl # Custom branch *just* for this Action. |
60 | 62 | commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}' |
61 | 63 | 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" |