Skip to content

Show GH CLI command for starting build #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 17, 2025
Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 15, 2025

For #108.

Prints the command needed to start a build using the GitHub CLI: https://github.com/cli/cli

For example, it will output something like this, the second bit is new:

Go to https://github.com/python/release-tools/actions/workflows/source-and-docs-release.yml
Select 'Run workflow' and enter the following values:
- Git remote to checkout: hugovk
- Git commit to target for the release: 240b882b2a17621c1a32eceb9227447be55ffb84
- CPython release number: 3.14.0a6

Or using the GitHub CLI run:
  gh workflow run source-and-docs-release.yml --repo python/release-tools -f git_remote=hugovk -f git_commit=240b882b2a17621c1a32eceb9227447be55ffb84 -f cpython_release=3.14.0a6

(We can later further automate by actually calling this: we'll need to make sure RMs have the tool installed -- if that's an acceptable requirement. Otherwise, via API calls, which will need token management etc. But first let's just print it.)

Co-authored-by: Adam Turner <[email protected]>
@hugovk hugovk merged commit 4a6cf47 into python:master Mar 17, 2025
12 checks passed
@hugovk hugovk deleted the gh-cli-command branch March 17, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants