File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17937,12 +17937,12 @@ const main = async () => {
17937
17937
} else if (eventName === 'push') {
17938
17938
options.commit = payload.after;
17939
17939
options.head = context.ref;
17940
- } else if (
17941
- eventName === 'workflow_dispatch' ||
17942
- eventName === 'workflow_run'
17943
- ) {
17940
+ } else if (eventName === 'workflow_dispatch') {
17944
17941
options.commit = context.sha;
17945
17942
options.head = context.ref;
17943
+ } else if (eventName === 'workflow_run') {
17944
+ options.commit = payload.workflow_run.head_sha;
17945
+ options.head = payload.workflow_run.head_branch;
17946
17946
}
17947
17947
17948
17948
if (options.reportOnlyChangedFiles) {
Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ const main = async () => {
125
125
} else if ( eventName === 'push' ) {
126
126
options . commit = payload . after ;
127
127
options . head = context . ref ;
128
- } else if (
129
- eventName === 'workflow_dispatch' ||
130
- eventName === 'workflow_run'
131
- ) {
128
+ } else if ( eventName === 'workflow_dispatch' ) {
132
129
options . commit = context . sha ;
133
130
options . head = context . ref ;
131
+ } else if ( eventName === 'workflow_run' ) {
132
+ options . commit = payload . workflow_run . head_sha ;
133
+ options . head = payload . workflow_run . head_branch ;
134
134
}
135
135
136
136
if ( options . reportOnlyChangedFiles ) {
You can’t perform that action at this time.
0 commit comments