Skip to content

Commit 9ef0456

Browse files
edvilmeCopilot
andcommitted
Add read-only release PR validation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213
1 parent 893ed0b commit 9ef0456

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎.github/workflows/release-pr.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release PR
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
types: [opened, reopened, synchronize, edited]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
plan:
13+
name: Release PR / Plan
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Validate release candidate
17+
id: plan
18+
uses: microsoft/vscode-python-ci/actions/release-pr@ad76df43eed2a9bb733add8d5010f7fad5899a25
19+
with:
20+
mode: plan
21+
- name: Summarize release candidate
22+
env:
23+
VERSION: ${{ steps.plan.outputs.version }}
24+
shell: bash
25+
run: |
26+
if [[ -n "$VERSION" ]]; then
27+
echo "Validated release candidate: $VERSION" >> "$GITHUB_STEP_SUMMARY"
28+
else
29+
echo "Not a release candidate. Release bumps must change only root package.json." >> "$GITHUB_STEP_SUMMARY"
30+
fi

0 commit comments

Comments
 (0)