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:
16
.github/workflows/on-release.yml
vendored
Normal file
16
.github/workflows/on-release.yml
vendored
Normal 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) }}}'
|
Reference in New Issue
Block a user