How to retrieve an output from a Github publish Action

Oren

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
Oren

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.

edited at
0

Comments

0 comments
Login to comment

Related

Output from Github action is empty

GitHub Action to publish assets

GitHub action to publish a path

How to use output from an action as an expression in a if-condition for a Github Action workflow?

How to output cache key to GITHUB_OUTPUT in Github Cache action?

How to publish the default workflow(github action) to git hub marketplace?

how to publish to github pages?

Github composite action output can not be set from within a bash script

How to retrieve filename from ls output

Github Action Fail : Publish NPM Package

Github Action for Azure Python Webapp: Failed to fetch credentials from Publish Profile

How to publish Travis CI artifacts to GitHub Release from several jobs

How to access step output within github-script action

How to pass the output of a bash command to Github Action parameter

AWS CodePipeline: How to pass output from CloudFormation action to a CodeBuild action

How to retrieve string from JTextField in Java to an Action Listener?

How to publish Delphi project on Github?

How publish java project in github?

How to retrieve a large number of pom.xml files from github?

How Can I Retrieve a Python Script From GitHub

R Shiny -- I am unable to retrieve the selected output value from my selectInput action

How to retrieve output parameter from stored procedure in oracle

How do I retrieve output from Multiprocessing in Python?

How to retrieve output parameter from stored procedure by EF code first

how to retrieve some variable from command output in bash

How to retrieve output from Eggplant shell script command

How to retrieve the raw output data from my NMDS graph?

How to retrieve the output of for-loop (dictionary) from models to views?

How do I retrieve only the needed line from terminal output?