From 9c14c6743864a2d2e2f209745d1a831c5bdeb8a5 Mon Sep 17 00:00:00 2001 From: cbrgm <24737434+cbrgm@users.noreply.github.com> Date: Sun, 31 Mar 2024 17:06:35 +0000 Subject: [PATCH] feat(ci): send mastodon status on release --- .anvil.lock | 2 +- .github/workflows/notify.yml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.anvil.lock b/.anvil.lock index 48e17a5..fd3ed84 100644 --- a/.anvil.lock +++ b/.anvil.lock @@ -1,5 +1,5 @@ { - "generated_at": "2024-03-30T10:20:05.532401645Z", + "generated_at": "2024-03-31T17:06:34.66091133Z", "version": "1.2.12", "files": [ { diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 78fa5fc..8b1ebe3 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -9,7 +9,7 @@ jobs: notify-on-release: runs-on: ubuntu-latest steps: - - name: Send Telegram Notification on New Release + - name: Send Telegram Notification on new release uses: cbrgm/telegram-github-action@v1 with: token: ${{ secrets.TELEGRAM_TOKEN }} @@ -21,4 +21,16 @@ jobs: Actor: ${{ github.actor }} Repository: ${{ github.repository }} Check it out: ${{ github.event.release.html_url }} + + - name: Send Mastodon Status on new release + id: mastodon + uses: cbrgm/mastodon-github-action@v2 + if: ${{ !github.event.repository.private }} + with: + access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }} + url: ${{ secrets.MASTODON_URL }} + language: "en" + message: | + 🚀 ${{ github.repository }} ${{ github.event.release.name }} published! + Check it out: ${{ github.event.release.html_url }} ...