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

Merge pull request #5384 from kambala-decapitator/on-release-workflow-beta

add workflow to notify other repos about new release
This commit is contained in:
Andrey Filipenkov
2025-02-07 13:09:57 +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) }}}'