mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
30d258596e
* Update congratsbot.yml * Update congratsbot.yml
21 lines
819 B
YAML
21 lines
819 B
YAML
name: "Discord:congratsbot"
|
|
|
|
# only trigger on pull request closed events
|
|
on:
|
|
pull_request:
|
|
types: [ closed ]
|
|
|
|
jobs:
|
|
congrats:
|
|
name: "Discord:congratsbot"
|
|
# this job will only run if the PR has been merged
|
|
if: github.event.pull_request.merged == true
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Send a Discord notification if a PR was merged
|
|
env:
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
|
|
# DISCORD_AVATAR: ${{ github.event.pull_request.user.avatar_url }}
|
|
uses: Ilshidur/action-discord@0.3.2
|
|
with:
|
|
args: '**Sweet!** [@${{ github.event.pull_request.user.login }}](<${{ github.event.pull_request.user.url }}>) just merged a PR: [#${{ github.event.number }}: ${{ github.event.title }}](<${{github.event.pull_request.url}}>)'
|