解决git action发布报错:Input required and not supplied: upload_url

现象:

解决git action发布报错:Input required and not supplied: upload_url_第1张图片

这个问题死活都找不到原因,后来打了一段调试的代码

    - name: Debug Create Release Output

        run: |

           echo "Release ID: ${{ env.RELEASE_ID }}"

           echo "Release Upload URL: ${{ env.RELEASE_UPLOAD_URL }}"

        env:

           RELEASE_ID: ${{ steps.create_release.outputs.id }}

           RELEASE_UPLOAD_URL: ${{ steps.create_release.outputs.upload_url }}

 结果获取到了upload_url的值。

解决git action发布报错:Input required and not supplied: upload_url_第2张图片

最后发现了原因: upload_url放到环境变量env里面去了! 而正确的应该是放到with标签里面

解决git action发布报错:Input required and not supplied: upload_url_第3张图片

 解决git action发布报错:Input required and not supplied: upload_url_第4张图片

你可能感兴趣的:(git,action)