Skip to content

Commit

Permalink
fix broken isExternalRelease check
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft committed Sep 15, 2023
1 parent 6799bed commit 507d604
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/closeOnRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Close issues marked 'fixed-pending-release' upon a release.
uses: gcampbell-msft/[email protected].11
uses: gcampbell-msft/[email protected].12
with:
token: ${{ secrets.GITHUB_TOKEN }}
label: ${{ inputs.label }}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27039,7 +27039,7 @@ async function run() {

let message = "";
const isExternalReleaseInput = core.getInput("isExternalRelease", { required: false });
const isExternalRelease = isExternalReleaseInput === "false" ? false : isExternalReleaseInput === "true" ? true : "false";
const isExternalRelease = isExternalReleaseInput === "false" ? false : isExternalReleaseInput === "true" ? true : false;

if (isExternalRelease === undefined) {
throw new Error("Invalid input for `isExternalRelease`");
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function run() {

let message = "";
const isExternalReleaseInput = core.getInput("isExternalRelease", { required: false });
const isExternalRelease = isExternalReleaseInput === "false" ? false : isExternalReleaseInput === "true" ? true : "false";
const isExternalRelease = isExternalReleaseInput === "false" ? false : isExternalReleaseInput === "true" ? true : false;

if (isExternalRelease === undefined) {
throw new Error("Invalid input for `isExternalRelease`");
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "close-issues-on-release",
"version": "0.0.11",
"version": "0.0.12",
"description": "GitHub Action that closes issues marked as fixed upon release",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 507d604

Please sign in to comment.