1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00

add workflow to notify other repos about new release

only Homebrew repo for now
This commit is contained in:
Andrey Filipenkov
2025-01-24 14:35:25 +03:00
committed by GitHub
parent bbaa9c345f
commit 01eda54a0f

16
.github/workflows/on-release.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Notify other repos of release
on:
release:
types: [published]
jobs:
notify_repos:
if: ${{ !github.event.release.prerelease }}
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch only for releases
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.HOMEBREW_TOKEN_SECRET }}
repository: vcmi/homebrew-vcmi
event-type: on-release
client-payload: '{"release": ${{ toJson(github.event.release) }}}'