armbian-build/.github/workflows/maintenance-announce-merge.yml
Igor Pecovnik 7a58d69b7d ci: organize GitHub Actions into meaningful categories
Reorganize workflow files and names into 3 main categories:
- Data: Data collection and synchronization workflows
- Infrastructure: Infrastructure tasks (mirroring, forking)
- Maintenance: All PR checks, labels, notifications, and maintenance tasks

All workflows now have capitalized category prefixes for consistency.

Also update internal workflow references to reflect new names.
2026-01-16 15:55:01 +01:00

23 lines
908 B
YAML

name: "Maintenance: Announce merge"
on:
push:
branches: [ main ]
jobs:
announcepush:
# Do not run this workflow in forks
if: ${{ github.repository == 'armbian/build' }}
runs-on: ubuntu-latest
steps:
- name: Get repo
uses: actions/checkout@v6
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 }}