Skip to content
name: Create Release PR
on:
push:
branches:
- osun/fix-git-permission
workflow_dispatch:
inputs:
version:
type: string
description: The released version without 'v'. For example, 1.0.0.
env:
APP_ID: 251311
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- name: Get GitHub app token
uses: actions/create-github-app-token@v1
id: app_token
with:
app-id: ${{ env.APP_ID }}
private-key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
- name: Set up Git name and email
run: |
git config --global user.email "251311+buf-release-bot[bot]@users.noreply.github.com"
git config --global user.name "buf-release-bot[bot]"
- name: Create release PR
run: bash ./make/buf/scripts/createreleasepr.bash
env:
GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
# VERSION: ${{ github.event.inputs.version }}
VERSION: 1.28.0
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_NOTIFICATION_WEBHOOK }}