Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retrieve the outcome from previous (or target specific) steps ID #246

Open
mochadwi opened this issue Jul 26, 2022 · 2 comments
Open
Labels
question Further information is requested

Comments

@mochadwi
Copy link

Is your feature request related to a problem? Please describe.
Is it possible to retrieve the outcome steps inside .github/slack.yml

Describe the solution you'd like

    - type: section
    fields:
      - type: mrkdwn
        text: "${{ fromJson(steps.get-step-detail.outputs.result).name }}" # how to retrieve it w/o having to looping(?)
      - type: mrkdwn
        text: 'URL: ${{ steps.build-and-publish.outputs.internal-sharing-app-url }}' # similar

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@satterly
Copy link
Contributor

satterly commented Sep 2, 2022

I think set-output could be what you're looking for, though I haven't used it myself. Give it a go and let me know. Thanks.

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

@satterly satterly added the question Further information is requested label Sep 2, 2022
@mochadwi
Copy link
Author

We're currently using the set-output as of now.

And actually not sure if the retrieval is possible inside https://github.com/act10ns/slack/blob/master/.github/slack-workflow.yml as it only support following template variable mentioned in the README.md,

or is it possible to acccess the ${{ github.event.repository.name }} in case we want to access github variable/context as alternative other than supported template variable? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants