c78c833400
* github-ci: color unit test output and logs * new config option: force_color_logs (useful in CI) * bats: show sqlite/mysql dump at the end * removed "-v" (print package names) from "go build" * general workflow cleanup
24 lines
662 B
YAML
24 lines
662 B
YAML
name: Dispatch to hub when deleting pre-release
|
|
|
|
on:
|
|
release:
|
|
types: deleted
|
|
|
|
jobs:
|
|
dispatch:
|
|
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: delete_branch
|
|
repository: crowdsecurity/hub
|
|
client-payload: '{"version": "${{ steps.keydb.outputs.release }}"}'
|