forked from bufbuild/buf
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1022 Bytes
/
back-to-development.yaml
File metadata and controls
30 lines (30 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Go back to Development
on:
workflow_dispatch:
release:
types: [published]
env:
APP_ID: 251311
jobs:
post-release:
runs-on: ubuntu-latest
steps:
- name: Get GitHub app token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
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@v6
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 PR back to development
run: bash ./make/buf/scripts/gobacktodevelopment.bash
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_NOTIFICATION_WEBHOOK }}