Skip to content

Commit

Permalink
update discord webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Apr 30, 2024
1 parent 10c1f37 commit 933bd73
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/discord-webhooks.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,38 @@ jobs:
homebridge/homebridge:ubuntu
homebridge/homebridge:${{ steps.image_tag.outputs.IMAGE_TAG }}
tag:
name: Verify Release Tag
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Get Release Tag
id: get_version
uses: jannemattila/get-version-from-tag@v3
- name: Tag Info
run: |
echo "Release Tag: ${{github.ref}}"
echo "Latest Tag: ${{ steps.get_version.outputs.version }}"
- name: Tag Info Matches
if: endsWith(github.ref, steps.get_version.outputs.version )
run: |
echo Latest Tag matches Release tag
- name: Tag Info Doesn't Match
if: ${{ !endsWith(github.ref, steps.get_version.outputs.version ) }}
run: |
echo Latest Tag does not matches Release tag
exit 1
github-releases-to-discord:
name: Discord Webhooks
needs: build
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
title: "Homebridge Docker Release"
description: |
Version `${{ github.event.release.tag_name }}`
url: "https://github.com/homebridge/homebridge-docker/releases/tag/${{ github.event.release.tag_name }}"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}

0 comments on commit 933bd73

Please sign in to comment.