ravsamhq / notify-slack-action

🔔 Send a Slack Notification from Github Actions regarding failure, warnings, or even success.
https://ravsam.in/blog/send-slack-notification-when-github-actions-fails/
MIT License
173 stars 57 forks source link

Migrate Action to Javascript from Python #38

Closed ravgeetdhillon closed 2 years ago

ravgeetdhillon commented 2 years ago

The current implementation uses Python and Docker is required for building the action. Docker builds take about 15-20s for each build which is too much as compared to the actions written in Javascript (1-2s).

Less time on builds means more money savings.

I'll try to migrate this action to Javascript and get rid of the Docker builds and release the new action as v2.

If anyone has a better alternative/suggestion, please comment below. I'd be more than happy to take your advice.

Thanks.

ravgeetdhillon commented 2 years ago

v2 released. 🎉

To use v2, just change the action version from v1 to v2:

- uses: ravsamhq/notify-slack-action@v1
# to
- uses: ravsamhq/notify-slack-action@v2
markstos commented 1 year ago

Thanks for this! I found I had hundreds of leftover Docker images due to this plugin, and this rewrite is the best solution to that problem too!