mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
21 lines
817 B
YAML
21 lines
817 B
YAML
name: "Announce PR merge to Discord"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
announcepush:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Send push to Discord
|
|
run: |
|
|
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST --data \
|
|
"{\"username\": \"Github\", \"avatar_url\": \"${{ secrets.AVATARURL }}\", \"content\": \"\
|
|
:white_check_mark: **Merged** into [$GITHUB_REPOSITORY](<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY>) by [$GITHUB_ACTOR](<$GITHUB_SERVER_URL/$GITHUB_ACTOR>) - \
|
|
[Link](<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commit/$GITHUB_SHA>): *$(git show -s --format=%s)*\"}" ${{ secrets.WEBHOOKURL }}
|