Skip to content

Commit f14c440

Browse files
authored
Don't warn when version is "latest" (#669)
Fixes #668
1 parent 87d5265 commit f14c440

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/index.js

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

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function run(): Promise<void> {
4646

4747
// Warn if pinned to HEAD
4848
if (isPinnedToHead()) {
49-
core.warning(pinnedToHeadWarning('v1'));
49+
core.warning(pinnedToHeadWarning('v2'));
5050
}
5151

5252
try {
@@ -57,7 +57,7 @@ export async function run(): Promise<void> {
5757

5858
if (skipInstall) {
5959
core.info(`Skipping installation ("skip_install" was true)`);
60-
if (version) {
60+
if (version && version !== 'latest') {
6161
core.warning(`Ignoring "version" because "skip_install" was true!`);
6262
}
6363

0 commit comments

Comments
 (0)