forked from bazel-contrib/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (49 loc) · 1.36 KB
/
Copy pathrelease_create_rc.yaml
File metadata and controls
56 lines (49 loc) · 1.36 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Release: Create RC"
on:
workflow_dispatch:
inputs:
issue:
description: 'The Release Tracking Issue Number (e.g., 142)'
required: true
type: string
workflow_call:
inputs:
issue:
description: 'The Release Tracking Issue Number (e.g., 142)'
required: true
type: string
permissions:
contents: write
issues: write
jobs:
tag_rc:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.tagger.outputs.tag_name }}
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: 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: Attempt RC Tagging
id: tagger
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ inputs.issue }}
run: |
bazel run //tools/private/release -- \
create-rc --issue "$ISSUE" --remote origin
call_release:
needs: tag_rc
uses: ./.github/workflows/release_publish.yaml
with:
tag_name: ${{ needs.tag_rc.outputs.tag_name }}
secrets: inherit