Skip to content

Commit 8fce059

Browse files
committed
Allow creating a manifest-PR using a comment at a later point
There are some cases where the following happens: 1. You create a draft PR, you don't want to create the manifest PR yet. 2. You have checked the draft PR manually, now you want a manifest-PR This commit adds the possibility to create the manifest PR upon a comment to a PR. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
1 parent 4c49566 commit 8fce059

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ inputs:
1515
required: false
1616
type: string
1717
default: manifest-pr-skip
18+
create-pr-comment-string:
19+
required: false
20+
type: string
21+
default: 'action-manifest-pr please create manifest-PR'
1822
rebase-comment-string:
1923
required: false
2024
type: string
@@ -119,7 +123,9 @@ runs:
119123
120124
# create actual manifest PR
121125
- name: Commit changed west.yml and create PR
122-
if: ${{ github.event.action == 'opened' }}
126+
if: ${{ github.event.action == 'opened' }} ||
127+
( ${{ github.event.action == 'created' }} && ${{ github.event.issue.pull_request }} &&
128+
contains(github.event.comment, inputs.create-pr-comment-string)) )
123129
shell: bash
124130
env:
125131
GH_TOKEN: ${{ inputs.token }}

0 commit comments

Comments
 (0)