32 lines
1.4 KiB
YAML
32 lines
1.4 KiB
YAML
name: Update code with code from PoB2
|
|
run-name: ${{ github.event.client_payload.title }}
|
|
|
|
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
|
|
continue-on-error: true
|
|
run: |
|
|
curl -L ${{ github.event.client_payload.patch_url }} | patch -p1 --merge --verbose -f -l --no-backup-if-mismatch
|
|
- 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 }}
|
|
committer: ${{ github.event.client_payload.name || github.event.client_payload.user }} <${{ github.event.client_payload.user }}@users.noreply.github.com>
|
|
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 }}
|