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 an output to let other steps know if something was pushed #96

Closed
ewjoachim opened this issue Nov 29, 2020 · 6 comments
Closed

Add an output to let other steps know if something was pushed #96

ewjoachim opened this issue Nov 29, 2020 · 6 comments
Assignees
Labels
good first issue Good for newcomers type: feature New feature or feature request
Projects

Comments

@ewjoachim
Copy link

I'm a beginner in GH Actions, but if I understand it correctly, you could add an explicit output so that other tasks could run conditionnally based on whether this action pushed something or not.

https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions#outputs

@ewjoachim ewjoachim changed the title Add an output to let other actions know if something was pushed Add an output to let other steps know if something was pushed Nov 29, 2020
@EndBug EndBug self-assigned this Nov 29, 2020
@EndBug EndBug added good first issue Good for newcomers type: feature New feature or feature request labels Nov 29, 2020
@EndBug EndBug added this to To do in Main board via automation Nov 29, 2020
@EndBug
Copy link
Owner

EndBug commented Nov 29, 2020

You're right, this could be useful. I'll add some outputs, not just this 👍🏻

@ewjoachim
Copy link
Author

Yay thanks :) ❤️

EndBug added a commit that referenced this issue Dec 5, 2020
@EndBug
Copy link
Owner

EndBug commented Dec 12, 2020

Hi, I've added 3 outputs to the actions: committed, tagged, and pushed. They're pretty self-explanatory, but there's more info on the README and in the action manifest.
I've published this change in v5.3.0 (also accessible via v5 and latest), feel free to test it and see if it fits your needs ;)

I'm closing this issue for now, feel free to contact me if you find any bug 👍🏻

@EndBug EndBug closed this as completed Dec 12, 2020
Main board automation moved this from To do to Done Dec 12, 2020
@EndBug
Copy link
Owner

EndBug commented Dec 12, 2020

@all-contributors please add @ewjoachim for his idea

@allcontributors
Copy link
Contributor

@EndBug

I've put up a pull request to add @ewjoachim! 🎉

@ewjoachim
Copy link
Author

Awww so sweet, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: feature New feature or feature request
Projects
No open projects
Main board
  
Done
Development

No branches or pull requests

2 participants