2020-12-08 09:51:01 +00:00
|
|
|
name: Dispatch to hub when creating pre-release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
# branches to consider in the event; optional, defaults to all
|
|
|
|
branches:
|
|
|
|
- master
|
2022-11-28 09:52:42 +00:00
|
|
|
- releases/**
|
2020-12-08 09:51:01 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
dispatch:
|
|
|
|
name: dispatch to hub-tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Repository Dispatch
|
|
|
|
uses: peter-evans/repository-dispatch@v1
|
2022-10-28 08:11:15 +00:00
|
|
|
if: ${{ github.repository_owner == 'crowdsecurity' }}
|
2020-12-08 09:51:01 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.DISPATCH_TOKEN }}
|
|
|
|
event-type: trigger_ci_hub
|
|
|
|
repository: crowdsecurity/hub
|
|
|
|
client-payload: '{"version": "${{ steps.keydb.outputs.release }}"}'
|