The following line requires quotes to avoid Mapping values are not allowed in this context. error generated by GitHub actions
cache-path: ${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:
should be
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'