diff --git a/.github/workflows/dispatch_create_tag_hub-tests.yaml b/.github/workflows/dispatch_create_tag_hub-tests.yaml index 4264719a3..b22f8dc8e 100644 --- a/.github/workflows/dispatch_create_tag_hub-tests.yaml +++ b/.github/workflows/dispatch_create_tag_hub-tests.yaml @@ -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 }}"}' \ No newline at end of file + client-payload: '{"version": "${{ steps.keydb.outputs.release }}"}'