Release #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
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) | |
pull_request: | |
types: [closed] | |
push: | |
branches: | |
- "release/**" | |
- "next/**" | |
tags: | |
- v* | |
release: | |
types: [created] | |
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 | |
- 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: 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}} | |
delete-branch: true | |
title: "Release v${{env.VERSION}}" | |
body: | | |
Release prepared for ${{env.VERSION}} | |
Reminder: Update the changelog | |
token: ${{ secrets.GITHUB_TOKEN }} |