From f9c897c5d2798020b9221800f80e925b46ccc67b Mon Sep 17 00:00:00 2001 From: Oliver Sun Date: Fri, 10 Nov 2023 11:51:17 -0500 Subject: [PATCH] c --- .github/workflows/back_to_development.yaml | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/back_to_development.yaml b/.github/workflows/back_to_development.yaml index 99a6966ecf..5821545a39 100644 --- a/.github/workflows/back_to_development.yaml +++ b/.github/workflows/back_to_development.yaml @@ -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: ... \ No newline at end of file + GH_TOKEN: ${{ steps.app_token.outputs.token }} + VERSION: ${{ github.event.inputs.version }} + WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_NOTIFICATION_WEBHOOK }}