mirror of
https://github.com/kitabisa/docker-slim-action.git
synced 2025-04-14 18:56:05 +00:00
feat: update version retrieval logic
Updated the version retrieval logic in the `get_slim` function of `index.ts` to correctly assign the `VER` variable based on the provided `inputVersion`. This change ensures that the appropriate version tag is assigned even when a specific input version is provided, enhancing the reliability of version handling. Fix #3 Signed-off-by: Dwi Siswanto <me@dw1.io>
This commit is contained in:
parent
427097c507
commit
dd97b7e007
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -48,7 +48,7 @@ function get_slim() {
|
||||
VER = response[0].tag_name;
|
||||
}
|
||||
else {
|
||||
VER = inputTag;
|
||||
VER = inputVersion;
|
||||
}
|
||||
}
|
||||
catch (_a) {
|
||||
|
@ -43,7 +43,7 @@ async function get_slim() {
|
||||
if (inputVersion == "" || inputVersion == "latest") {
|
||||
VER = response[0].tag_name;
|
||||
} else {
|
||||
VER = inputTag;
|
||||
VER = inputVersion;
|
||||
}
|
||||
} catch {
|
||||
throw new Error('ERROR! Could not retrieve the current Slim version number.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user