diff --git a/.github/workflows/discord-webhooks.yml b/.github/workflows/discord-webhooks.yml new file mode 100644 index 0000000..adc9f9f --- /dev/null +++ b/.github/workflows/discord-webhooks.yml @@ -0,0 +1,27 @@ +# This is a basic workflow to help you get started with Actions + +name: Discord Webhooks + +# Controls when the workflow will run +on: + release: + types: [released] + +jobs: + github-releases-to-discord: + runs-on: ubuntu-latest + name: GitHub Releases to Discord + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Latest Release + if: ${{ github.event.release.prerelease == false }} + uses: SethCohen/github-releases-to-discord@v1.13.1 + with: + webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} + color: "4726621" + username: "Homebridge" + avatar_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" + footer_title: "Homebridge Raspbian Image" + footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" + footer_timestamp: true \ No newline at end of file