File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
github-token : ${{ secrets.GITHUB_TOKEN }}
23
23
script : |
24
- const script = require(' .github/workflows/scripts/pr-filter.js');
25
- await script ({ github, context, core });
24
+ const { default: filter } = await import('${{ github.workspace }}/ .github/workflows/scripts/pr-filter.js');
25
+ await filter ({ github, context, core });
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function hasDescription(markdown) {
9
9
) ;
10
10
}
11
11
12
- module . exports = async ( { github, context, core } ) => {
12
+ export default async ( { github, context, core } ) => {
13
13
const pr = context . payload . pull_request ;
14
14
const body = pr . body === null ? '' : pr . body ;
15
15
const markdown = body . replace ( / < ! - - [ \s \S ] * ?- - > / g, '' ) ;
You can’t perform that action at this time.
0 commit comments