Skip to content

Commit 04afd29

Browse files
Wazbatmeeroslav
andauthored
Added output to indicate when no previous build was found on this branch (#16)
* Added output to indicate when no previous build * Incremented version * Build updated code * Update package-lock.json Co-authored-by: Miroslav Jonaš <meeroslav@users.noreply.github.com>
1 parent 57eb6da commit 04afd29

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6400,6 +6400,7 @@ let BASE_SHA;
64006400
process.stdout.write(`NOTE: You can instead make this a hard error by settting 'error-on-no-successful-workflow' on the action in your workflow.\n`);
64016401

64026402
BASE_SHA = execSync(`git rev-parse HEAD~1`, { encoding: 'utf-8' });
6403+
core.setOutput('noPreviousBuild', 'true');
64036404
}
64046405
} else {
64056406
process.stdout.write('\n');

find-successful-workflow.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ let BASE_SHA;
3636
process.stdout.write(`NOTE: You can instead make this a hard error by settting 'error-on-no-successful-workflow' on the action in your workflow.\n`);
3737

3838
BASE_SHA = execSync(`git rev-parse HEAD~1`, { encoding: 'utf-8' });
39+
core.setOutput('noPreviousBuild', 'true');
3940
}
4041
} else {
4142
process.stdout.write('\n');

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"license": "MIT",
55
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action",
66
"scripts": {
@@ -16,4 +16,4 @@
1616
"@octokit/action": "^3.10.10",
1717
"@vercel/ncc": "^0.29.0"
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)