update libjade_randombytes spdx-license #430
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release tests | |
permissions: | |
contents: read | |
# Trigger oqs-provider release tests. | |
# Runs whenever a release is published, or when a commit message ends with "[trigger downstream]" | |
# When triggered by a release, the liboqs release tag and the provider "<release tag>-tracker" branch are used. | |
# When triggered by a commit message, the triggering liboqs branch and the provider "<liboqs branch>-tracker" branch are used. | |
# If the tracker branch does not exist, the downstream pipeline should detect it and run on the main branch instead. | |
on: | |
push: | |
workflow_dispatch: | |
release: | |
types: [ published ] | |
jobs: | |
oqs-provider-release-test: | |
if: github.event_name == 'release' || contains( github.event.head_commit.message, '[trigger downstream]' ) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout release tests script | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4 | |
with: | |
sparse-checkout: | | |
scripts/provider-test-trigger.sh | |
sparse-checkout-cone-mode: false | |
- name: Trigger oqs-provider release tests | |
run: | | |
CURL_FLAGS="--silent --write-out \n%{response_code}\n" \ | |
ACCESS_TOKEN="${{ secrets.OQSBOT_GITHUB_ACTIONS }}" \ | |
LIBOQS_REF="${{ github.ref_name }}" \ | |
PROVIDER_REF="${{ github.ref_name }}-tracker" \ | |
./scripts/provider-test-trigger.sh | tee curl_out \ | |
&& grep -q "204" curl_out |