Skip to content

Commit

Permalink
Don't warn when version is "latest" (#669)
Browse files Browse the repository at this point in the history
Fixes #668
  • Loading branch information
sethvargo committed Dec 19, 2023
1 parent 87d5265 commit f14c440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function run(): Promise<void> {

// Warn if pinned to HEAD
if (isPinnedToHead()) {
core.warning(pinnedToHeadWarning('v1'));
core.warning(pinnedToHeadWarning('v2'));
}

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

if (skipInstall) {
core.info(`Skipping installation ("skip_install" was true)`);
if (version) {
if (version && version !== 'latest') {
core.warning(`Ignoring "version" because "skip_install" was true!`);
}

Expand Down

0 comments on commit f14c440

Please sign in to comment.