Open borgejHNIKT opened 3 months ago
Hi @borgejHNIKT
Apologize for the mistake, since fvm use
required interaction you won’t be able to do so while the workflow is running.
Instead you can use it like this:
echo yes | fvm use stable
This is missing for the README, so I’ll make sure to update it.
Hi @borgejHNIKT
Apologize for the mistake, since
fvm use
required interaction you won’t be able to do so while the workflow is running.Instead you can use it like this:
echo yes | fvm use stable
This is missing for the README, so I’ll make sure to update it.
Doesn't fix it for me, issue persists
Isn't there a way to show output? Seems like it's stuck on some prompt.
Instead of using fvm use
, can you change to this instead?
- name: Setup Flutter SDK
run: echo yes | fvm install stable --skip-pub-get
I'm not anywhere near my computer at the moment, but this is what I have been using for the test workflow.
See https://github.com/flutter-actions/setup-fvm/blob/main/.github/workflows/dart.yml
@noga-dev not sure if you found the solution but the script hang because if you run fvm use
it ask you if you need to install the needed version if it's not installed and then it ask you if you want to add .fvm/
to your .gitignore
making it two prompt and echo yes
technically only help answering the first one
the first prompt is skipped if you already made a fvm install before
the second prompt is skipped if it find .fvm/
in the .gitignore
(had to put it at the end of the .gitignore
file for it to be recognized)
@socheatsok78 not sure if you can do anything on your side regarding that issue code wise, it's likely more something to do with documentation
Sorry I forgot to mention that I removed this action from my workflow for now
Thank you @kaal-dam for a detailed explanation.
Apologize for the inconvenience, work has been rough this week.
I will do more testing this weekend, to see what works and will keep it posted here.
Tried using this action today, but the build step "fvm use stable" looks like its hanging on user input?