Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversun9 committed Nov 10, 2023
1 parent 1539ab0 commit f9c897c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/back_to_development.yaml
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 }}

0 comments on commit f9c897c

Please sign in to comment.