mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
Remove the release-please GitHub App config files and add an Actions-based release pipeline with candidate branch strategy. This includes workflows for cutting releases, running release-please, finalizing releases, publishing to PyPI, and cherry-picking fixes to release candidates. Co-authored-by: Wei Sun (Jack) <weisun@google.com> PiperOrigin-RevId: 868825704
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# Cherry-picks a commit from main to the release/candidate branch.
|
|
# Use this to include bug fixes in an in-progress release.
|
|
name: "Release: Cherry-pick"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
commit_sha:
|
|
description: 'Commit SHA to cherry-pick'
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: write
|
|
actions: write
|
|
|
|
jobs:
|
|
cherry-pick:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: release/candidate
|
|
fetch-depth: 0
|
|
|
|
- name: Configure git
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
|
|
- name: Cherry-pick commit
|
|
run: |
|
|
echo "Cherry-picking ${{ inputs.commit_sha }} to release/candidate"
|
|
git cherry-pick ${{ inputs.commit_sha }}
|
|
|
|
- name: Push changes
|
|
run: |
|
|
git push origin release/candidate
|
|
echo "Successfully cherry-picked commit to release/candidate"
|
|
|
|
- name: Trigger Release Please
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh workflow run release-please.yml --repo ${{ github.repository }}
|
|
echo "Triggered Release Please workflow"
|