Closed jorgenpt closed 1 year ago
Further investigation reveals that changing the syntax to flutter-version: ${{ env.FLUTTER_VERSION }}
seems to address this. Presumably the old behavior would expand environment variables due to how it invoked setup.sh
(It now uses single quotes around the arguments.)
I think that constitutes a breaking change and therefore a major version bump, or having the old behavior restored (though I originally wrote my code thinking GH Workflows would expand them before forwarding them to the action, so I understand why you would change your behavior).
Oops, sorry, @jorgenpt, I am not aware of this use case, but it seems better to use ${{ env.FLUTTER_VERSION }}
rather than passing the environment variable name directly. What do you think? Is it OK if we stick to this behavior?
It depends on how important breakage is to you -- I've solved my problem by using the (more correct) syntax, but this could theoretically affect other projects (Like simplio-app above). :)
Okay, let's close this issue for now. Hopefully, the solution you posted is sufficient enough to handle similar cases. Thanks, @jorgenpt!
Running the flutter-action after commit 9d48f4e fails (tested on a ubuntu-latest runner):
It looks like it's no longer resolving the
$FLUTTER_VERSION
variable I pass in.Also worth noting that this
tar
failure did not fail the action, so the actual failure was the next step trying to runflutter pub get
and getting/home/runner/work/_temp/10150038-ae3e-4950-be3c-f4528f6fab2e.sh: line 1: flutter: command not found
Here's the full log output
Here's the the relevant workflow snippet:
If I lock the action version to the prior commit with the following snippet, it works as expected: