mirror of
https://github.com/certbot/certbot.git
synced 2026-04-15 22:20:28 -04:00
We're a few years behind the curve on this one, but using "master" as a programming term is a callous practice that explicitly uses the historical institution of slavery as a cheap, racist metaphor. Switch to using "main", as it's the new default in git and GitHub.
21 lines
682 B
YAML
21 lines
682 B
YAML
name: Merge Event
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
|
|
jobs:
|
|
if_merged:
|
|
# Forked repos can not access Mattermost secret.
|
|
if: github.event.pull_request.merged == true && !github.event.pull_request.head.repo.fork
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: mattermost/action-mattermost-notify@main
|
|
with:
|
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_MERGE_WEBHOOK }}
|
|
TEXT: >
|
|
[${{ github.repository }}] |
|
|
[${{ github.event.pull_request.title }}
|
|
#${{ github.event.number }}](https://github.com/${{ github.repository }}/pull/${{ github.event.number }})
|
|
was merged into main by ${{ github.actor }}
|