Skip to content

Release Request

Release Request #13

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