1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

add workflow to notify other repos about new release

only Homebrew repo for now

(cherry picked from commit 01eda54a0fc3924bb48cf81704bec275e704765a)
This commit is contained in:
Andrey Filipenkov 2025-01-24 14:35:25 +03:00
parent 2beb4c6aa4
commit d0a89a8cc8

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) }}}'