Skip to content

Commit 983ed55

Browse files
authored
ci/publish: More fixes/cleanups (#3137)
Signed-off-by: Ryan Northey <[email protected]>
1 parent e4f15fe commit 983ed55

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/_publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ on:
1919
default: false
2020
type: boolean
2121
event:
22-
default: ${{ github.event_name }}
22+
default: ${{ github.event.workflow_run.event }}
2323
type: string
2424
pr:
25-
default: ${{ github.event.pull_request && toJSON(github.event.pull_request) || '{}' }}
25+
default: >-
26+
${{ github.event.workflow_run.event == 'pull_request'
27+
&& toJSON(github.event.workflow_run.pull_requests)[0]
28+
|| '{}' }}
2629
type: string
2730
repository:
2831
default: ${{ github.repository }}
@@ -97,7 +100,7 @@ jobs:
97100
id: commit-message
98101
uses: envoyproxy/toolshed/gh-actions/[email protected]
99102
with:
100-
options: -Rr
103+
options: -sRr
101104
input: |
102105
${{ inputs.commit-message }}
103106
filter: |

0 commit comments

Comments
 (0)