Actions通过maven构建项目失败

1.使用maven命令mvn -B clean install打包项目,报错/var/run/act/workflow/7: line 2: mvn: command not found,显示mvn命令没找到
2. 我通过

  • name: Set up JDK 17
    uses: actions/setup-java@v4
    with:
    java-version: ‘17’
    distribution: ‘microsoft’
    cache: ‘maven’
    安装jdk17并且成功,但是使用mvn命令的就无法使用。
    请问这个要怎么解决

You can find some examples here action-examples/Java: Gitea actions example for Java - Java - Gitea: Git with a cup of tea