-
Notifications
You must be signed in to change notification settings - Fork 2.3k
28 lines (26 loc) · 1.08 KB
/
backport_receive.yml
File metadata and controls
28 lines (26 loc) · 1.08 KB
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
name: Update code with code from PoB2
on:
repository_dispatch:
types:
- port-changes
jobs:
apply-patch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'dev'
- name: Apply patch
run: |
curl -L ${{ github.event.client_payload.patch_url }} | git apply -v --reject --intent-to-add
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "[pob2-port] ${{ github.event.client_payload.title }}"
branch: pob2-pr-${{ github.event.client_payload.id }}
body: |
${{ github.event.client_payload.msg }}
author: ${{ github.event.client_payload.name || github.event.client_payload.user }} <${{ github.event.client_payload.user }}@users.noreply.github.com>
commit-message: ${{ github.event.client_payload.msg }}
labels: ${{ github.event.client_payload.labels }}