Skip to content

Commit b7e0bf1

Browse files
edvilmeCopilot
andcommitted
Enable merged-PR release branch preparation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213
1 parent bc8948f commit b7e0bf1

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release PR Release
2+
3+
on:
4+
pull_request_target:
5+
branches: [main]
6+
types: [closed]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
release:
13+
name: Release PR / Release
14+
if: github.event.pull_request.merged == true
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
steps:
19+
- name: Prepare release branch
20+
id: release
21+
uses: microsoft/vscode-python-ci/actions/release-pr@4e0c4335bbf6b1a274673e22d9c39cd7efb93ccf
22+
with:
23+
mode: release
24+
- name: Summarize release branch
25+
env:
26+
VERSION: ${{ steps.release.outputs.version }}
27+
BRANCH: ${{ steps.release.outputs.branch }}
28+
shell: bash
29+
run: |
30+
if [[ -n "$VERSION" ]]; then
31+
echo "Created release branch: $BRANCH (stable version $VERSION)." >> "$GITHUB_STEP_SUMMARY"
32+
else
33+
echo "Not a release candidate; no branch created." >> "$GITHUB_STEP_SUMMARY"
34+
fi

0 commit comments

Comments
 (0)