blob: c714243990ac9872116b1c6763a9ec19c4a63d41 [file]
name: "Release: Prepare"
on:
workflow_dispatch:
inputs:
issue:
description: 'The Release Tracking Issue Number (e.g., 142)'
required: false
type: string
workflow_call:
inputs:
issue:
description: 'The Release Tracking Issue Number (e.g., 142)'
required: false
type: string
permissions:
contents: write
issues: write
pull-requests: write
jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Bazel
uses: ./.github/actions/setup-bazel
- name: Configure Git Identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Run Release Preparation Pipeline
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ inputs.issue }}
run: |
ARGS=()
if [ -n "$ISSUE" ]; then
ARGS+=("--issue=$ISSUE")
fi
bazel run \
--//python/config_settings:py_pbs_distribution=install_only_stripped \
//dev/release -- \
prepare "${ARGS[@]}" --no-dry-run