diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 685a5bc..01b5683 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -404,3 +404,22 @@ jobs: name: ros2_medkit-coverage fail_ci_if_error: true verbose: true + + notify-demos: + needs: [jazzy-lint, jazzy-test] + if: >- + github.event_name == 'push' && + github.ref == 'refs/heads/main' && + needs.jazzy-lint.result == 'success' && + needs.jazzy-test.result == 'success' + runs-on: ubuntu-latest + # Only Jazzy gates the dispatch. Humble failures do not block demos CI - intentional tradeoff. + permissions: {} + steps: + - name: Trigger selfpatch_demos CI + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.DEMOS_DISPATCH_TOKEN }} + repository: selfpatch/selfpatch_demos + event-type: ros2_medkit_updated + client-payload: '{"sha":"${{ github.sha }}","run_url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}'