Skip to content

Commit

Permalink
refactor: ♻️ config file
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Sep 25, 2020
1 parent 3ef519f commit 04aa414
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_PATH: .github/needs-more-info.yml
CONFIG_FILE: .github/needs-more-info.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: bubkoo/needs-more-info@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_PATH: Yaml config file path
CONFIG_FILE: Yaml config file path
```
## Config
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
GITHUB_TOKEN:
description: Your GitHub token for authentication
required: true
CONFIG_PATH:
CONFIG_FILE:
description: Config file path relative to your repo's root.
required: false
runs:
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export namespace Action {
let badBody = !body || !body.trim()
let badTitle = !title || !title.trim()

const configPath = core.getInput('CONFIG_PATH')
const configPath = core.getInput('CONFIG_FILE')
const octokit = Util.getOctokit()
const config = await Config.get(octokit, configPath)

Expand Down

0 comments on commit 04aa414

Please sign in to comment.