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

Merge pull request #5319 from vcmi/on-release-workflow

add workflow to notify other repos about new release
This commit is contained in:
Andrey Filipenkov
2025-02-02 16:26:56 +03:00
committed by GitHub

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