update #1501
This file contains 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: Repository Updater | |
# yamllint disable-line rule:truthy | |
on: | |
repository_dispatch: | |
types: ["update"] | |
jobs: | |
workflows: | |
uses: hassio-addons/workflows/.github/workflows/repository-updater.yaml@main | |
secrets: | |
UPDATER_TOKEN: ${{ secrets.UPDATER_TOKEN }} | |
announce: | |
name: Announce add-on update | |
needs: workflows | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📢 Announce on Discord server | |
uses: sarisia/[email protected] | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
nodetail: true | |
username: ${{ github.event.client_payload.name }} | |
avatar_url: | | |
https://raw.githubusercontent.com/${{ github.repository }}/master/${{ github.event.client_payload.addon }}/icon.png | |
title: ":arrow_up: ${{ github.event.client_payload.name }} ${{ github.event.client_payload.version }}" | |
image: | | |
https://raw.githubusercontent.com/${{ github.repository }}/master/${{ github.event.client_payload.addon }}/logo.png | |
description: | | |
A new version of the ${{ github.event.client_payload.name }} add-on has been published. | |
**Version**: `${{ github.event.client_payload.version }}` | |
**Release notes**: | |
<https://github.com/${{ github.event.client_payload.repository }}/releases/tag/${{ github.event.client_payload.version }}> |