|
@@ -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 }}"}'
|