From a2b6b31a263d5da91e7d6f1205da6041d04b2394 Mon Sep 17 00:00:00 2001 From: AlteredCoder <64792091+AlteredCoder@users.noreply.github.com> Date: Wed, 29 Jul 2020 12:36:02 +0200 Subject: [PATCH] Add new workflow to create tag in hub-tests (#153) --- .github/workflows/dispatch.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/dispatch.yaml diff --git a/.github/workflows/dispatch.yaml b/.github/workflows/dispatch.yaml new file mode 100644 index 000000000..90108104e --- /dev/null +++ b/.github/workflows/dispatch.yaml @@ -0,0 +1,19 @@ +name: Dispatch when pre-release + +on: + push: + tags: + - v* + +jobs: + dispatch: + name: dispatch to hub-tests + runs-on: ubuntu-latest + steps: + - 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