Use GitHub environment variables in the Discord message
See original GitHub issueHi!
I was trying to add the commit SHA to the Discord message using the env.GITHUB_SHA
GitHub environment variable. But no matter how I tried to do this, it never worked out.
I want to achieve a message like this:
CI run was successful.
https://github.com/Sv443/Project/[COMMIT_SHA_HERE]/actions
I’ve never really used bash, nor did I ever use this GitHub action, so please tell me how I could achieve this or whether you could add this feature.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Marketplace Actions Actions for Discord - GitHub
Outputs a message to Discord. ... Discord for GitHub Actions ... Environment variables can be interpolated in the message using brackets ( {{...
Read more >GitHub - Ilshidur/action-discord
Contribute to Ilshidur/action-discord development by creating an account on ... Environment variables can be interpolated in the message using brackets ...
Read more >discordjs-bot-guide/env-files.md at master - GitHub
Using Environment Variables. A .env file is a type of file that holds environment variables of an application. Environment variables allow you to...
Read more >Actions Status Discord - GitHub Marketplace
Environment Variables Discord webhook endpoind like: https://discordapp.com/api/webhooks/... You can provide webhook via inputs either. DO NOT APPEND /github ...
Read more >Discord Message Notify · Actions · GitHub Marketplace
GitHub Action for sending a Discord notification message. Actions Status. message. Features. Send Multiple Messages; Send Multiple Files ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve implemented the
GITHUB_SHA
variable to directly link to the action log:and it works perfectly! Thanks! 😀
I pushed a release. You can now interpolate environment variables in your arguments. More details here : https://github.com/Ilshidur/action-discord#arguments
I’d be glad to hear some feedback from you 😉