Skip to content

Commit 30b2b0f

Browse files
committed
chore(ci): notify coretrace-runner when a release is published
The platform pins this package by version in coretrace-runner. A dispatch after the PyPI publish lets that repository resolve the new version and open its own pull request for the bump, instead of the pin drifting until someone notices. Best effort: the step is continue-on-error and no-ops when RUNNER_DISPATCH_TOKEN is absent, so it can never fail a release.
1 parent b639359 commit 30b2b0f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,19 @@ jobs:
4141
name: dist
4242
path: dist/
4343
- uses: pypa/gh-action-pypi-publish@release/v1
44+
45+
# Lets the platform repin itself: coretrace-runner re-resolves this package's newest
46+
# version on PyPI and opens a pull request for the bump, for both python-analyzer and
47+
# python-analyzer-pro. Best effort, and never fails the release: the pull request can
48+
# also be started by hand from that repository's Actions tab. The payload is a hint;
49+
# the version is resolved there, not taken from here.
50+
- name: Notify coretrace-runner of the release
51+
continue-on-error: true
52+
env:
53+
GH_TOKEN: ${{ secrets.RUNNER_DISPATCH_TOKEN }}
54+
run: |
55+
set -euo pipefail
56+
[ -n "${GH_TOKEN:-}" ] || { echo "no RUNNER_DISPATCH_TOKEN set, skipping"; exit 0; }
57+
gh api repos/CoreTrace-Entreprise/coretrace-runner/dispatches \
58+
-f event_type=tool-release \
59+
-F client_payload[tool]=python-analyzer

0 commit comments

Comments
 (0)