forked from bufbuild/buf
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.36 KB
/
release_request.yaml
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
name: Release Request
on:
workflow_dispatch:
inputs:
version:
type: string
description: The version you intend to release without leading 'v' (eg x.y.z and not vx.y.z)
env:
VERSION: ${{ github.event.inputs.version }}
APP_ID: 251311
jobs:
prepare:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version != '' }}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
# temporarily skipped
# - name: setup-go
# uses: actions/setup-go@v4
# with:
# go-version: "1.21.x"
# - name: Install Buf
# run: make installbuf
- name: Update Buf Version
run: make updateversion
- name: Update Changelog Version
run: make releasechangelog VERSION=${{env.VERSION}}
- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
with:
add-paths: .
commit-message: "Update version to v${{env.VERSION}}"
branch: release/v${{env.VERSION}}
title: "Release v${{env.VERSION}}"
delete-branch: true
body: |
Release prepared for ${{env.VERSION}}
Reminder: Update the changelog
token: ${{ secrets.GITHUB_TOKEN }}
# placeholder for slack notification