File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Merge Event
2+
3+ on :
4+ pull_request_target :
5+ types :
6+ - closed
7+ permissions : {} # let's not use any permissions we don't need here
8+ jobs :
9+ if_merged :
10+ if : github.event.pull_request.merged == true
11+ runs-on : ubuntu-latest
12+ steps :
13+ # github actions workflows triggered by pull_request_target can be
14+ # dangerous because they run with additional privileges in an environment
15+ # containing values that can be controlled by an attacker. because of
16+ # this, please take extra caution when modifying the steps taken by this
17+ # workflow. for additional information, see
18+ # https://github.com/certbot/certbot/pull/10490
19+ #
20+ # we pin this action to a version tested and audited by certbot's
21+ # maintainers for extra security. the full hash is used as doing so is
22+ # recommended by zizmor
23+ - uses : mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a
24+ with :
25+ MATTERMOST_WEBHOOK_URL : ${{ secrets.MATTERMOST_MERGE_WEBHOOK }}
26+ TEXT : >
27+ [${{ github.repository }}] |
28+ [${{ github.event.pull_request.title }}
29+ #${{ github.event.number }}](https://github.com/${{ github.repository }}/pull/${{ github.event.number }})
30+ was merged into ${{ github.event.pull_request.base.ref }} by ${{ github.actor }}
You can’t perform that action at this time.
0 commit comments