dispatch on tag creation (#734)
Co-authored-by: registergoofy <70151212+registergoofy@users.noreply.github.com>
This commit is contained in:
parent
8df8ed9e3e
commit
e45cb167bd
|
@ -1,4 +1,4 @@
|
|||
name: Dispatch when pre-release
|
||||
name: Dispatch to hub-tests when creating pre-release
|
||||
|
||||
on:
|
||||
release:
|
||||
|
@ -9,10 +9,16 @@ jobs:
|
|||
name: dispatch to hub-tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: keydb
|
||||
uses: pozetroninc/github-action-get-latest-release@master
|
||||
with:
|
||||
owner: crowdsecurity
|
||||
repo: crowdsec
|
||||
excludes: prerelease, draft
|
||||
- name: Repository Dispatch
|
||||
uses: peter-evans/repository-dispatch@v1
|
||||
with:
|
||||
token: ${{ secrets.DISPATCH_TOKEN }}
|
||||
event-type: create_tag
|
||||
repository: crowdsecurity/hub-tests
|
||||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
||||
client-payload: '{"version": "${{ steps.keydb.outputs.release }}"}'
|
||||
|
|
Loading…
Reference in a new issue