Improve code agent interactions and show jobs on the artifacts panel … #130
This file contains hidden or 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: Dispatch | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }} | |
| cancel-in-progress: false | |
| jobs: | |
| notify-ci-consumer: | |
| name: Notify CI consumer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send completion event | |
| env: | |
| GH_TOKEN: ${{ secrets.CI_DISPATCH_TOKEN }} | |
| DISPATCH_REPO: ${{ secrets.CI_DISPATCH_REPO }} | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| jq -n --arg ref "${GITHUB_SHA}" \ | |
| '{event_type: "ci-passed", client_payload: {ref: $ref}}' \ | |
| | gh api -X POST "/repos/${DISPATCH_REPO}/dispatches" --input - |