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

Add stats as a github step output #76

Merged
merged 2 commits into from
Jul 22, 2023
Merged

Conversation

damccorm
Copy link
Contributor

This will give users the ability to manipulate the outcome of a run themselves and connect to arbitrary output sources. I tried this myself and was able to send a reasonably well formatted email with minimal work (see https://github.com/damccorm/playground/blob/main/.github/workflows/pr-stats.yml for my example).

Fixes #72

@damccorm
Copy link
Contributor Author

Update: I got this to a point where I feel pretty good about the email formatting, so this approach definitely can work :)

@manuelmhtr manuelmhtr merged commit 292c586 into flowwer-dev:master Jul 22, 2023
@damccorm
Copy link
Contributor Author

Thanks!

@manuelmhtr
Copy link
Contributor

Hi @damccorm thanks for your help! Changes are available in v2.11.0. Just made a couple of changes:

  1. Renamed results to resultsMd (to specify this is the markdown output).
  2. Added the variable resultsJson as the results in JSON format.

Best!

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

Successfully merging this pull request may close these issues.

Feature: Allow output from action to be consumed in a future step
2 participants