From d32dfc73144918452fb880ff640e6fb739934761 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Mon, 9 Nov 2026 18:15:18 -0800 Subject: [PATCH] Enable merged-PR release branch preparation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213 --- .github/workflows/release-pr-release.yml | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release-pr-release.yml diff --git a/.github/workflows/release-pr-release.yml b/.github/workflows/release-pr-release.yml new file mode 100644 index 000000000000..4724208d7d5c --- /dev/null +++ b/.github/workflows/release-pr-release.yml @@ -0,0 +1,34 @@ +name: Release PR Release + +on: + pull_request_target: + branches: [main] + types: [closed] + +permissions: + contents: read + +jobs: + release: + name: Release PR / Release + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Prepare release branch + id: release + uses: microsoft/vscode-python-ci/actions/release-pr@4e0c4335bbf6b1a274673e22d9c39cd7efb93ccf + with: + mode: release + - name: Summarize release branch + env: + VERSION: ${{ steps.release.outputs.version }} + BRANCH: ${{ steps.release.outputs.branch }} + shell: bash + run: | + if [[ -n "$VERSION" ]]; then + echo "Created release branch: $BRANCH (stable version $VERSION)." >> "$GITHUB_STEP_SUMMARY" + else + echo "Not a release candidate; no branch created." >> "$GITHUB_STEP_SUMMARY" + fi