0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/.github/workflows/congratsbot.yml

22 lines
670 B
YAML
Raw Normal View History

2021-08-08 13:05:30 -05:00
name: "Discord:congratsbot"
2021-08-08 13:02:43 -05:00
on:
push:
branches:
- main
2021-08-08 13:02:43 -05:00
jobs:
congrats:
name: "discord:congratsbot"
if: github.repository == 'snowpackjs/astro'
2021-08-08 13:02:43 -05:00
runs-on: ubuntu-latest
steps:
- name: Send a Discord notification when a PR is merged
2021-08-08 13:02:43 -05:00
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
# DISCORD_AVATAR: ${{ github.event.pull_request.user.avatar_url }}
2021-08-08 13:02:43 -05:00
uses: Ilshidur/action-discord@0.3.2
with:
2021-08-09 00:36:38 -05:00
args: '**Sweet!** <${{ github.event.commits[0].author.name }}> just merged ["${{ github.event.commits[0].message }}"](<https://github.com/snowpackjs/astro/commits/main>)'