PR #1668 - Fix HTTP/2 response headers parsing #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update code with code from PoB2 | |
| run-name: "PR #${{ github.event.client_payload.id }} - ${{ 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 | |
| run: | | |
| # Download patch first to avoid broken pipes if apply exits early | |
| PATCH_FILE=$(mktemp) | |
| curl -L ${{ github.event.client_payload.patch_url }} -o "$PATCH_FILE" | |
| if ! git apply -v --3way --ignore-whitespace --index "$PATCH_FILE"; then | |
| echo "3-way apply failed, retrying with --reject" | |
| git apply -v --reject --ignore-whitespace --index "$PATCH_FILE" || true | |
| fi | |
| - 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> | |
| committer: ${{ 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 }} |