feat: add the triggers to release, after pypi publishing
This commit is contained in:
parent
a5a7ae2564
commit
6958b4edd4
2 changed files with 32 additions and 26 deletions
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
|
|
@ -136,3 +136,31 @@ jobs:
|
||||||
flavour=${{ inputs.flavour }}
|
flavour=${{ inputs.flavour }}
|
||||||
cache-from: type=registry,ref=cognee/cognee:buildcache
|
cache-from: type=registry,ref=cognee/cognee:buildcache
|
||||||
cache-to: type=registry,ref=cognee/cognee:buildcache,mode=max
|
cache-to: type=registry,ref=cognee/cognee:buildcache,mode=max
|
||||||
|
|
||||||
|
trigger-docs-test-suite:
|
||||||
|
needs: release-pypi-package
|
||||||
|
if: ${{ inputs.flavour == 'main' }}
|
||||||
|
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
|
||||||
|
steps:
|
||||||
|
- name: Trigger community 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-community/dispatches \
|
||||||
|
-d '{"event_type":"new-main-release","client_payload":{"caller_repo":"'"${GITHUB_REPOSITORY}"'"}}'
|
||||||
30
.github/workflows/release_test.yml
vendored
30
.github/workflows/release_test.yml
vendored
|
|
@ -14,30 +14,8 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-community-test-suite:
|
load-tests:
|
||||||
runs-on: ubuntu-22.04
|
name: Load Tests
|
||||||
steps:
|
uses: ./.github/workflows/load_tests.yml
|
||||||
- name: Trigger community tests
|
secrets: inherit
|
||||||
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-community/dispatches \
|
|
||||||
-d '{"event_type":"new-main-release","client_payload":{"caller_repo":"'"${GITHUB_REPOSITORY}"'"}}'
|
|
||||||
# load-tests:
|
|
||||||
# name: Load Tests
|
|
||||||
# uses: ./.github/workflows/load_tests.yml
|
|
||||||
# secrets: inherit
|
|
||||||
|
|
||||||
# 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}"'"}}'
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue