Add files via upload #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Artado Devs Ultimate Notifier | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, closed] | |
| watch: | |
| types: [started] | |
| fork: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Build and Send Notification | |
| run: | | |
| EVENT="${{ github.event_name }}" | |
| USER="${{ github.actor }}" | |
| REPO="${{ github.repository }}" | |
| URL="https://github.com/$REPO" | |
| if [ "$EVENT" == "watch" ]; then | |
| MSG="⭐ **Yeni Star!**\n👤 **Kullanıcı:** $USER\n✨ Artado Devs ekibi parlıyor!" | |
| elif [ "$EVENT" == "fork" ]; then | |
| MSG="🍴 **Repo Forklandı!**\n👤 **Kullanıcı:** $USER\n📦 Bir geliştirici projeyi çatalladı." | |
| elif [ "$EVENT" == "push" ]; then | |
| MSG="🚀 **Yeni Push!**\n👤 **Yapan:** $USER\n📝 **Mesaj:** ${{ github.event.head_commit.message }}\n🔗 [Commit'i Gör]($URL/commit/${{ github.sha }})" | |
| elif [ "$EVENT" == "pull_request" ]; then | |
| MSG="🔀 **Pull Request:** ${{ github.event.pull_request.title }}\n👤 **Durum:** ${{ github.event.action }}\n🔗 [PR Detay](${{ github.event.pull_request.html_url }})" | |
| elif [ "$EVENT" == "issues" ]; then | |
| MSG="📢 **Yeni Issue Açıldı!**\n👤 **Açan:** $USER\n📌 **Başlık:** ${{ github.event.issue.title }}\n🔗 [İncele](${{ github.event.issue.html_url }})" | |
| else | |
| MSG="🔔 **GitHub Etkinliği:** $EVENT\n👤 **Yapan:** $USER" | |
| fi | |
| curl -X POST https://stoat.chat/api/webhooks/01KGQ3FS4Q12204TGZE90BV65Z/jn0xWYqB8VtB9ZIZxh94VYvt_oTkob_9beaSArj03HUDMcYWjPJDbEpU-qfG0t9O \ | |
| -H "Content-Type: application/json" \ | |
| -d "{\"content\": \"$MSG\"}" |