Skip to content

Commit

Permalink
ignore --web-render argument for flutter 3.29.0 and above
Browse files Browse the repository at this point in the history
check flutter version before using --web-renderer

fix issues in getting flutter version

fix version
  • Loading branch information
Mufaddal1125 committed Feb 13, 2025
1 parent 7ffcd0a commit 953e2ca
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,18 @@ runs:
steps:
- run: flutter config --enable-web
shell: bash
working-directory: ${{inputs.workingDir}}
- run: echo "$(flutter --version | awk '{print $2}' | tr -dc '0-9')"
shell: bash
- run: echo "flutter_version=$(flutter --version | awk '{print $2}' | tr -dc '0-9')" >> $GITHUB_ENV
shell: bash
- run: flutter build web --release --web-renderer=${{inputs.webRenderer}} --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
# run only if flutter version < 329
if: ${{ env.flutter_version < 3290 }}
shell: bash
working-directory: ${{inputs.workingDir}}
- run: flutter build web --release --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
# run only if flutter version >= 329
if: ${{ env.flutter_version >= 3290 }}
shell: bash
working-directory: ${{inputs.workingDir}}
- run: git config user.name github-actions
Expand Down

0 comments on commit 953e2ca

Please sign in to comment.