File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 10
10
- name : Start Patch
11
11
uses : ./
12
12
with :
13
- base_path : ' ./template/base.md'
14
- patch_path : ' ./template/patch'
15
- output_path : ' ./CODE_OF_CONDUCT.md'
13
+ base_file_path : ' ./template/base.md'
14
+ patch_file_path : ' ./template/patch'
15
+ output_file_path : ' ./CODE_OF_CONDUCT.md'
16
16
- uses : gr2m/create-or-update-pull-request-action@v1
17
17
env :
18
18
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ This action adds a prefix to the default Code of Conduct template and applies th
7
7
``` yaml
8
8
uses : @anonrig/patch-my-code-of-conduct@v1
9
9
with :
10
- base_path : ' ./base.md'
11
- patch_path : ' ./patch_file'
12
- output_path : ' ../../CODE_OF_CONDUCT.md'
10
+ base_file_path : ' ./base.md'
11
+ patch_file_path : ' ./patch_file'
12
+ output_file_path : ' ../../CODE_OF_CONDUCT.md'
13
13
` ` `
Original file line number Diff line number Diff line change 1
1
name : ' Code of Conduct'
2
2
description : ' Generates a Code of Conduct with a prefix and apply necessary patches'
3
3
inputs :
4
- base_template_path :
4
+ base_file_path :
5
5
description : ' Path of the base markdown file'
6
6
required : true
7
7
patch_file_path :
8
8
description : ' Path of the patch to be applied to the output file'
9
9
required : true
10
- output_template_path :
10
+ output_file_path :
11
11
description : ' Path of the generated markdown file'
12
12
required : true
13
13
runs :
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import core from '@actions/core'
2
2
import { apply_patch } from "./runner.js" ;
3
3
4
4
try {
5
- const base_path = core . getInput ( 'base_path ' ) ;
6
- const patch_path = core . getInput ( 'patch_path ' ) ;
7
- const output_path = core . getInput ( 'output_path ' ) ;
5
+ const base_path = core . getInput ( 'base_file_path ' ) ;
6
+ const patch_path = core . getInput ( 'patch_file_path ' ) ;
7
+ const output_path = core . getInput ( 'output_file_path ' ) ;
8
8
9
9
await apply_patch ( base_path , patch_path , output_path ) ;
10
10
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments