mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-22 05:26:45 +02:00
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Apply prepared large-import patch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- fix/large-required-imports-v2
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
apply:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Reconstruct and apply patch
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
base64 -d .github/pr-build/large-import.patch.b64.1 > /tmp/large-import.patch
|
|
base64 -d .github/pr-build/large-import.patch.b64.2 >> /tmp/large-import.patch
|
|
git apply --check /tmp/large-import.patch
|
|
git apply /tmp/large-import.patch
|
|
rm -rf .github/pr-build
|
|
rm -f .github/workflows/apply-large-import-pr.yml
|
|
- name: Commit prepared change
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add -A
|
|
git diff --cached --check
|
|
git commit -m "fix(mods): support large required imports end-to-end"
|
|
git push origin HEAD:fix/large-required-imports-v2
|