- Put the
gong-bot.yml
in the folder.github/workflows
in your repository - Add a new webhook in the Discord Server Settings > Integrations > Webhooks
- Copy the webhook url
- Add the secret
DISCORD_WEBHOOK
in your GitHub repository Actions secrets
Last active
April 12, 2024 09:37
-
-
Save lukas-h/84650d7b4d0ec487d35e4a05d3d3d4b1 to your computer and use it in GitHub Desktop.
Discord Motivational Gong Bot (on pull request merge)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run gong bot | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
gong: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Discord notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: 'Repository {{ EVENT_PAYLOAD.repository.full_name }} has a new pull request merged on main: [#{{ EVENT_PAYLOAD.pull_request.number }}](https://github.com/{{ EVENT_PAYLOAD.repository.full_name }}/pull/{{ EVENT_PAYLOAD.pull_request.number }}). https://tenor.com/view/gong-exatl%C3%B3n-antonio-rosique-pegada-bang-gif-23256866' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment