我正在尝试从一个名为: azure/webapps-deploy@v2 ( https://github.com/Azure/webapps-deploy )的publish Azure操作中检索输出,但是由于某些我不理解的原因,我无法检索该操作应该为我提供的webapp-url的输出。但是由于某些原因,无论我做什么,我总是得到一个空值。
- name: Deploy to Azure Web App Staging
uses: azure/webapps-deploy@v2
id: deploy_webapp
with:
app-name: 'asev3-webApp-streams'
slot-name: 'integ'
publish-profile: ${{ secrets.WEBAPP_PUBLISH_PROFILE }}
package: poc-webapp-streams\Streams.WebApi.${{ github.run_number }}.zip
- name: Check WebApp Health
uses: jtalk/url-health-check-action@v1.5
with:
# Check the following URLs one by one sequentially
url: ${{ steps.deploy_webapp.output.webapp-url }}/api/v1/status发布于 2021-04-29 14:46:31
最后,我用以下方式解决了这个问题:
- name: Deploy to WebApp slot Integ
uses: azure/webapps-deploy@v2
id: deploy
with:
app-name: 'poc-asev3-webApp-streamsBack'
slot-name: 'integ'
publish-profile: ${{ secrets.WEBAPP_PUBLISH_PROFILE }}
package: ${{ steps.package_path.outputs.PACKAGE }}
- name: Check WebApp Health
uses: jtalk/url-health-check-action@v1.5
with:
url: ${{ steps.deploy.outputs.webapp-url }}/${{ github.event.inputs.healthcheck }}我的错误是我在最后一个操作的URL:部分中使用了输出而不是输出,大写S。
https://stackoverflow.com/questions/67269674
复制相似问题