Create Release PR #25
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: Create Release PR | |
on: | |
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: 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: Checkout repository code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.app_token.outputs.token }} | |
- name: Set up Git name and email | |
run: | | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Create release PR | |
run: bash ./make/buf/scripts/createreleasepr.bash | |
env: | |
GH_TOKEN: ${{ steps.app_token.outputs.token }} | |
VERSION: ${{ github.event.inputs.version }} | |
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_NOTIFICATION_WEBHOOK }} |