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

Suggestion: Use deployment-status action as runs.post script #64

Open
LeoColomb opened this issue May 28, 2022 · 0 comments
Open

Suggestion: Use deployment-status action as runs.post script #64

LeoColomb opened this issue May 28, 2022 · 0 comments

Comments

@LeoColomb
Copy link

Both deployment-action and deployment-status are useful and works nicely together.
But using both of them comes with a duplication of the configuration data, and make the workflow a bit too complex.

GitHub Actions support a nice (actually quite common) feature: runs.post.
The most obvious usage of this feature is for caching data at the end of a job, like actions/setup-node.

Using this with deployment-action could be very valuable as well:

  • Only one additional input would be sufficient to enable (or disable) the status submission
    • All the rest of the configuration is done only once
  • It runs at the end of the job per default wherever the deployment is created
  • The status of the job is available to the post script, not limited to success only
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

No branches or pull requests

1 participant