I'm trying to retrieve the output from a publish Azure action called: azure/webapps-deploy@v2 ( https://github.com/Azure/webapps-deploy ) But for some reason that I don't understand I'm unable to retrieve the output for the webapp-url that the action is supposed to provide me. But for some reason no matter what I do I always get a null value.
- 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/[email protected]
with:
# Check the following URLs one by one sequentially
url: ${{ steps.deploy_webapp.output.webapp-url }}/api/v1/status
Well at the end i solved this issue in the following way:
- 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/[email protected]
with:
url: ${{ steps.deploy.outputs.webapp-url }}/${{ github.event.inputs.healthcheck }}
My mistake that I used output instead of outputs, capital S. in the URL: section of the last action.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments