Error when using shell switch-case statement in run property


I have the following step in my .yml workflow:

      - name: script testing
        run: |
          case 4.4 in
          4.4) echo"Google Nexus 5" ;;
          6) echo "Google Nexus 6" ;;
          8) echo "Google Pixel 2" ;;
          11) echo "Google Pixel 4" ;;
          *) echo "Invalid option!" && exit 1 ;;

And I’m getting the following error: syntax error: unexpected end of file

Any ideas on how to solve that?

the full yml file and workflow run is here:

I missed the esac command at the end, solved