Skip to content

Commit

Permalink
Add changelogs option
Browse files Browse the repository at this point in the history
  • Loading branch information
Obi-Dann committed Apr 13, 2021
1 parent aaa1285 commit 6b119da
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
required: true
path:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
changelogs:
description: >
Controls whether to fetch release notes from updated dependencies
default: true
runs:
using: 'node12'
main: 'dist/index.js'
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ async function run(): Promise<void> {
return
}

if (typeof pullRequestNumber !== 'number') {
const changelogs = core.getInput('changelogs') === 'true'

if (typeof pullRequestNumber !== 'number' || !changelogs) {
return
}
core.info(`Fetching changelogs...`)
Expand Down

0 comments on commit 6b119da

Please # to comment.