Skip to content

Commit e4cce15

Browse files
committed
fix: update argument names
1 parent fc08fdf commit e4cce15

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/test-action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
- name: Start Patch
1111
uses: ./
1212
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'
1616
- uses: gr2m/create-or-update-pull-request-action@v1
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This action adds a prefix to the default Code of Conduct template and applies th
77
```yaml
88
uses: @anonrig/patch-my-code-of-conduct@v1
99
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'
1313
```

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: 'Code of Conduct'
22
description: 'Generates a Code of Conduct with a prefix and apply necessary patches'
33
inputs:
4-
base_template_path:
4+
base_file_path:
55
description: 'Path of the base markdown file'
66
required: true
77
patch_file_path:
88
description: 'Path of the patch to be applied to the output file'
99
required: true
10-
output_template_path:
10+
output_file_path:
1111
description: 'Path of the generated markdown file'
1212
required: true
1313
runs:

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import core from '@actions/core'
22
import { apply_patch } from "./runner.js";
33

44
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');
88

99
await apply_patch(base_path, patch_path, output_path);
1010
} catch (error) {

0 commit comments

Comments
 (0)