Skip to content

Commit

Permalink
feat: add localfile input params.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 9, 2022
1 parent 46e19c1 commit 17893a4
Show file tree
Hide file tree
Showing 5 changed files with 2,825 additions and 22 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Specify the **branch** to read the file content
## Inputs
- `path` File path. E.g: `src/index.ts`
- `branch` the branch where the file resides. Default: `${{ github.ref_name }}`, E.g: `main`, `gh-pages`
- `branch` The branch where the file resides. Default: `${{ github.ref_name }}`, E.g: `main`, `gh-pages`
- `localfile` Local File path. E.g: `src/index.ts`

## Outputs

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: 'File to be replaced'
default: ''
required: false
localfile:
description: 'Local File path'
default: ''
required: false
branch:
description: 'The person that committed the file. Default: the authenticated user.'
default: ${{ github.ref_name }}
Expand Down
Loading

0 comments on commit 17893a4

Please sign in to comment.