diff --git a/.github/workflows/discord-webhooks.yml b/.github/workflows/discord-webhooks.yml index f7d5e52..f5059ac 100644 --- a/.github/workflows/discord-webhooks.yml +++ b/.github/workflows/discord-webhooks.yml @@ -9,31 +9,9 @@ on: 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 APT Package" - footer_icon_url: "https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" - footer_timestamp: true - - - name: Pre-Release - if: ${{ github.event.release.prerelease == true }} - 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: "Pre-Release: Homebridge APT Package" - 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 + uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest + with: + footer_title: "Homebridge APT Package" + secrets: + DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} + DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index f1b6960..8f61648 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ .pnpm-debug.log Packages Release -staging/ \ No newline at end of file +staging/ +.DS_Store