Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/deploy-health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ jobs:
- name: Notify Slack — success
if: success()
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d '{"text":"Pathfinder production deploy healthy — both services OK"}'
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d '{"text":"Pathfinder production deploy healthy — both services OK"}' || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Notify Slack — failure
if: failure()
run: |
curl -s -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"Pathfinder production health check FAILED after deploy\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -s -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"Pathfinder production health check FAILED after deploy\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
8 changes: 5 additions & 3 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- name: Notify Slack on failure
if: failure()
run: |
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \ || true
-H "Content-Type: application/json" \
-d "{\"text\":\"❌ *Pathfinder GitHub Pages deploy failed*\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}"
if [ -n "${{ secrets.SLACK_WEBHOOK }}" ]; then
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" \
-d "{\"text\":\"❌ *Pathfinder GitHub Pages deploy failed*\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}" || true
fi
8 changes: 5 additions & 3 deletions .github/workflows/notify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ jobs:
- name: Notify Slack
if: github.actor != 'github-actions[bot]'
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"New PR on pathfinder: *${{ github.event.pull_request.title }}* by ${{ github.actor }}\n<${{ github.event.pull_request.html_url }}|View PR #${{ github.event.pull_request.number }}>\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"New PR on pathfinder: *${{ github.event.pull_request.title }}* by ${{ github.actor }}\n<${{ github.event.pull_request.html_url }}|View PR #${{ github.event.pull_request.number }}>\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
16 changes: 10 additions & 6 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@ jobs:
- name: Notify Slack — success
if: success()
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"Docker image published: ghcr.io/copilotkit/pathfinder:${{ github.ref_name }}\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"Docker image published: ghcr.io/copilotkit/pathfinder:${{ github.ref_name }}\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Notify Slack — failure
if: failure()
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"Docker publish failed\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"Docker publish failed\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
16 changes: 10 additions & 6 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,17 @@ jobs:
if: steps.check.outputs.published == 'false'
run: |
VERSION="v${{ steps.check.outputs.version }}"
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \ || true
-H "Content-Type: application/json" \
-d "{\"text\":\"📦 *@copilotkit/pathfinder ${VERSION} published*\nnpm: https://www.npmjs.com/package/@copilotkit/pathfinder/v/${{ steps.check.outputs.version }}\nRelease: https://github.com/${{ github.repository }}/releases/tag/${VERSION}\"}"
if [ -n "${{ secrets.SLACK_WEBHOOK }}" ]; then
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" \
-d "{\"text\":\"📦 *@copilotkit/pathfinder ${VERSION} published*\nnpm: https://www.npmjs.com/package/@copilotkit/pathfinder/v/${{ steps.check.outputs.version }}\nRelease: https://github.com/${{ github.repository }}/releases/tag/${VERSION}\"}" || true
fi

- name: Notify Slack on failure
if: failure()
run: |
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \ || true
-H "Content-Type: application/json" \
-d "{\"text\":\"❌ *Pathfinder release failed*\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}"
if [ -n "${{ secrets.SLACK_WEBHOOK }}" ]; then
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" \
-d "{\"text\":\"❌ *Pathfinder release failed*\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}" || true
fi
8 changes: 5 additions & 3 deletions .github/workflows/unreleased-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ jobs:
- name: Notify Slack — unreleased changes
if: steps.unreleased.outputs.count
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"Unreleased changes on main — ${{ steps.unreleased.outputs.count }} commits since ${{ steps.unreleased.outputs.tag }}\n<https://github.com/${{ github.repository }}/compare/${{ steps.unreleased.outputs.tag }}...main|View compare>\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"Unreleased changes on main — ${{ steps.unreleased.outputs.count }} commits since ${{ steps.unreleased.outputs.tag }}\n<https://github.com/${{ github.repository }}/compare/${{ steps.unreleased.outputs.tag }}...main|View compare>\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
16 changes: 10 additions & 6 deletions .github/workflows/update-competitive-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ jobs:
- name: Notify Slack — changes detected
if: steps.changes.outputs.changed == 'true'
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"Competitive matrix updated — PR created\n<${{ steps.pr.outputs.url }}|View PR>\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"Competitive matrix updated — PR created\n<${{ steps.pr.outputs.url }}|View PR>\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Notify Slack — failure
if: failure()
run: |
curl -sf -X POST "$SLACK_WEBHOOK" \ || true
-H 'Content-Type: application/json' \
-d "{\"text\":\"Competitive matrix scan failed\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}"
if [ -n "$SLACK_WEBHOOK" ]; then
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "{\"text\":\"Competitive matrix scan failed\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}" || true
fi
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Loading