From a15104701544037b1c2a8c0ce3135edc0c86e81c Mon Sep 17 00:00:00 2001 From: Spencer Wilson Date: Mon, 16 Dec 2024 12:42:44 -0500 Subject: [PATCH] Trigger liboqs-rust CI on commits to main Signed-off-by: Spencer Wilson --- .github/workflows/downstream-basic.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/downstream-basic.yml b/.github/workflows/downstream-basic.yml index 7dc92f5e3..104ea95fe 100644 --- a/.github/workflows/downstream-basic.yml +++ b/.github/workflows/downstream-basic.yml @@ -93,3 +93,15 @@ jobs: --data '{"event_type":"liboqs-upstream-trigger"}' \ https://api.github.com/repos/open-quantum-safe/liboqs-java/dispatches | tee curl_out \ && grep -q "204" curl_out + - name: Trigger liboqs-rust CI + if: ${{ !cancelled() }} # run all steps independent of failures + run: | + curl --silent \ + --write-out "\n%{response_code}\n" \ + --request POST \ + --header "Accept: application/vnd.github+json" \ + --header "Authorization: Bearer ${{ secrets.OQSBOT_GITHUB_ACTIONS }}" \ + --header "X-GitHub-Api-Version: 2022-11-28" \ + --data '{"event_type":"liboqs-upstream-trigger"}' \ + https://api.github.com/repos/open-quantum-safe/liboqs-rust/dispatches | tee curl_out \ + && grep -q "204" curl_out