forked from bazel-contrib/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 952 Bytes
/
Copy pathrelease_complete_prepare.yaml
File metadata and controls
35 lines (30 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Release: Complete Prepare"
on:
pull_request:
types: [closed]
permissions:
contents: write
issues: write
jobs:
on_pr_merged:
# Run only if the release-prepared PR was merged
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'release-prepared')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-version: 1.20.0
- name: Mark Prepare Release Complete
run: |
# Run the complete-prepare subcommand in the release tool to cleanly update checklist metadata
bazel run //tools/private/release -- \
complete-prepare --pr ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}