Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Fix boolean inputs #7

Merged
merged 2 commits into from
Sep 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions distribution/index.js

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

6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ async function run() {

const header = core.getInput('header');
const footer = core.getInput('footer');
const includeHash = core.getInput('include-hash');
const includeRange = core.getInput('include-range');

// @TODO: Fix boolean checks when https://github.com/actions/toolkit/issues/361 gets resolved
const includeHash = core.getInput('include-hash') === 'true';
const includeRange = core.getInput('include-range') === 'true';

// Fetch tags from remote
await execFile('git', ['fetch', 'origin', '+refs/tags/*:refs/tags/*']);
Expand Down