pulumi-version-file
only works in install-only mode
#1215
Labels
Milestone
pulumi-version-file
only works in install-only mode
#1215
What happened?
It seems that the
pulumi-version-file
input argument only works in install-only mode. I do not think this is expected behavior according to the documentation in the readme or in the PR: #1204When in non-install-only mode
When running the following action config:
I get this output:
Just to test, the content of the
.pulumi.version
file is:When in install-only mode
Output:
Example
The example comes from a GHES repo, but the following does not work:
When running the following action config:
I get this output:
Just to test, the content of the
.pulumi.version
file is:Output of
pulumi about
Additional context
In the
config.ts
filepulumi-version-file
input is only read inmakeInstallationConfig
:actions/src/config.ts
Line 27 in 760956a
installationConfig
is only valid whencommand
is undefined, so inmain.ts
the if statement checkingdownloadConfig.success
is skipped when not in install-only mode:actions/src/main.ts
Lines 23 to 28 in 760956a
So, when not in install-only mode, then full config does not use
pulumi-version-file
. Also, I suspectgetInput('pulumi-version')
returns an empty string causingpulumiVersion
to be an empty string, rather than^3
(I'm thinking this because of the outputted lineConfigured range:
which should end with the value frompulumiVersion
).actions/src/main.ts
Lines 32 to 34 in 760956a
actions/src/main.ts
Lines 43 to 44 in 760956a
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: