Skip to content

Commit

Permalink
Revert "Limit trigger"
Browse files Browse the repository at this point in the history
This reverts commit ba4a551.

Signed-off-by: Spencer Wilson <[email protected]>
  • Loading branch information
SWilson4 committed Aug 21, 2024
1 parent caea971 commit 6347493
Showing 1 changed file with 62 additions and 62 deletions.
124 changes: 62 additions & 62 deletions .github/workflows/commit-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permissions:

on:
push:
#branches: [ "main" ]
branches: [ "main" ]

jobs:
trigger-downstream-ci:
Expand All @@ -14,26 +14,26 @@ jobs:
runs-on: ubuntu-latest
steps:
# TODO: missing projects?
# - name: Trigger OQS-OpenSSL CI
# run: |
# curl --silent \
# --write-out "\n%{response_code}\n" \
# --user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
# --request POST \
# --header "Content-Type: application/json" \
# --data '{ "branch": "OQS-OpenSSL_1_1_1-stable", "parameters": { "run_downstream_tests": true } }' \
# https://circleci.com/api/v2/project/gh/open-quantum-safe/openssl/pipeline | tee curl_out \
# && grep -q "201" curl_out
# - name: Trigger OQS-BoringSSL CI
# run: |
# curl --silent \
# --write-out "\n%{response_code}\n" \
# --user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
# --request POST \
# --header "Content-Type: application/json" \
# --data '{ "branch": "master", "parameters": { "run_downstream_tests": true } }' \
# https://circleci.com/api/v2/project/gh/open-quantum-safe/boringssl/pipeline | tee curl_out \
# && grep -q "201" curl_out
- name: Trigger OQS-OpenSSL CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
--request POST \
--header "Content-Type: application/json" \
--data '{ "branch": "OQS-OpenSSL_1_1_1-stable", "parameters": { "run_downstream_tests": true } }' \
https://circleci.com/api/v2/project/gh/open-quantum-safe/openssl/pipeline | tee curl_out \
&& grep -q "201" curl_out
- name: Trigger OQS-BoringSSL CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
--request POST \
--header "Content-Type: application/json" \
--data '{ "branch": "master", "parameters": { "run_downstream_tests": true } }' \
https://circleci.com/api/v2/project/gh/open-quantum-safe/boringssl/pipeline | tee curl_out \
&& grep -q "201" curl_out
- name: Trigger OQS-OpenSSH CI
run: |
curl --silent \
Expand All @@ -45,44 +45,44 @@ jobs:
--data '{"ref":"OQS-v9"}' \
https://api.github.com/repos/open-quantum-safe/openssh/actions/workflows/ubuntu.yaml/dispatches | tee curl_out \
&& grep -q "204" curl_out
# - name: Trigger oqs-provider CI
# run: |
# curl --silent \
# --write-out "\n%{response_code}\n" \
# --user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
# --request POST \
# --header "Content-Type: application/json" \
# --data '{ "branch": "main" }' \
# https://circleci.com/api/v2/project/gh/open-quantum-safe/oqs-provider/pipeline | tee curl_out \
# && grep -q "201" curl_out
# - name: Trigger liboqs-dotnet CI
# run: |
# curl --silent \
# --write-out "\n%{response_code}\n" \
# --user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
# --request POST \
# --header "Content-Type: application/json" \
# --data '{ "branch": "master" }' \
# https://circleci.com/api/v2/project/gh/open-quantum-safe/liboqs-dotnet/pipeline | tee curl_out \
# && grep -q "201" curl_out
# - name: Trigger liboqs-java CI
# run: |
# curl --silent \
# --write-out "\n%{response_code}\n" \
# --user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
# --request POST \
# --header "Content-Type: application/json" \
# --data '{ "branch": "master" }' \
# https://circleci.com/api/v2/project/gh/open-quantum-safe/liboqs-java/pipeline | tee curl_out \
# && grep -q "201" curl_out
# - name: Trigger liboqs-python CI
# 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-python/dispatches | tee curl_out \
# && grep -q "204" curl_out
- name: Trigger oqs-provider CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
--request POST \
--header "Content-Type: application/json" \
--data '{ "branch": "main" }' \
https://circleci.com/api/v2/project/gh/open-quantum-safe/oqs-provider/pipeline | tee curl_out \
&& grep -q "201" curl_out
- name: Trigger liboqs-dotnet CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
--request POST \
--header "Content-Type: application/json" \
--data '{ "branch": "master" }' \
https://circleci.com/api/v2/project/gh/open-quantum-safe/liboqs-dotnet/pipeline | tee curl_out \
&& grep -q "201" curl_out
- name: Trigger liboqs-java CI
run: |
curl --silent \
--write-out "\n%{response_code}\n" \
--user ${{ secrets.BUILD_TRIGGER_TOKEN }}: \
--request POST \
--header "Content-Type: application/json" \
--data '{ "branch": "master" }' \
https://circleci.com/api/v2/project/gh/open-quantum-safe/liboqs-java/pipeline | tee curl_out \
&& grep -q "201" curl_out
- name: Trigger liboqs-python CI
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-python/dispatches | tee curl_out \
&& grep -q "204" curl_out

0 comments on commit 6347493

Please sign in to comment.