forked from bufbuild/buf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1539ab0
commit f9c897c
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: Go back to Development | ||
name: Create Release PR | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
inputs: | ||
version: | ||
type: string | ||
description: The released version without 'v'. For example, 1.0.0. | ||
env: | ||
# todo: use the one for buf | ||
APP_ID: 417207 | ||
|
||
jobs: | ||
post-release: | ||
prepare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v4 | ||
- name: Get GitHub App Token | ||
- name: Get GitHub app token | ||
uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
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 | ||
- 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 PR Back to Development | ||
run: bash ./make/buf/scripts/gobacktodevelopment.bash | ||
- name: Create release PR | ||
run: bash ./make/buf/scripts/createreleasepr.bash | ||
env: | ||
GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
# WEBHOOK_URL: ... | ||
GH_TOKEN: ${{ steps.app_token.outputs.token }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_NOTIFICATION_WEBHOOK }} |