feat: add comunity test trigger
This commit is contained in:
parent
999e6c0981
commit
e92d8f57b5
1 changed files with 18 additions and 4 deletions
22
.github/workflows/release_test.yml
vendored
22
.github/workflows/release_test.yml
vendored
|
|
@ -19,14 +19,28 @@ jobs:
|
||||||
# uses: ./.github/workflows/load_tests.yml
|
# uses: ./.github/workflows/load_tests.yml
|
||||||
# secrets: inherit
|
# secrets: inherit
|
||||||
|
|
||||||
docs-tests:
|
# docs-tests:
|
||||||
|
# runs-on: ubuntu-22.04
|
||||||
|
# steps:
|
||||||
|
# - name: Trigger docs tests
|
||||||
|
# run: |
|
||||||
|
# curl -L -X POST \
|
||||||
|
# -H "Accept: application/vnd.github+json" \
|
||||||
|
# -H "Authorization: Bearer ${{ secrets.REPO_DISPATCH_PAT_TOKEN }}" \
|
||||||
|
# -H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
# https://api.github.com/repos/topoteretes/cognee-docs/dispatches \
|
||||||
|
# -d '{"event_type":"new-main-release","client_payload":{"caller_repo":"'"${GITHUB_REPOSITORY}"'"}}'
|
||||||
|
|
||||||
|
trigger-community-test-suite:
|
||||||
|
needs: release-pypi-package
|
||||||
|
if: ${{ inputs.flavour == 'main' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Trigger docs tests
|
- name: Trigger community tests
|
||||||
run: |
|
run: |
|
||||||
curl -L -X POST \
|
curl -L -X POST \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.DOCS_REPO_PAT_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.REPO_DISPATCH_PAT_TOKEN }}" \
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
https://api.github.com/repos/topoteretes/cognee-docs/dispatches \
|
https://api.github.com/repos/topoteretes/cognee-community/dispatches \
|
||||||
-d '{"event_type":"new-main-release","client_payload":{"caller_repo":"'"${GITHUB_REPOSITORY}"'"}}'
|
-d '{"event_type":"new-main-release","client_payload":{"caller_repo":"'"${GITHUB_REPOSITORY}"'"}}'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue