mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: upload patch conflict fix as CI artifact (#50577)
* build: add patch conflict resolution workflow with CI artifacts (#50235) ci: upload patch conflict fix as artifact in apply-patches When patch-up.js cannot auto-push the 3-way-merged patch diff (e.g. on fork PRs), the checkout action already writes patches/update-patches.patch and tells the user to check CI artifacts — but nothing was uploading it. This adds the missing upload-artifact step to the apply-patches job so the resolved diff is available for download, and documents in CLAUDE.md that pulling this artifact and applying it with `git am` is the fast path for fixing patch conflicts on PR branches without a full local sync. Co-authored-by: Claude <noreply@anthropic.com> (cherry picked from commit816e5964fb) * build: skip archiving patch conflict fix artifact (#50251) The update-patches artifact is a single .patch file, so zipping it is unnecessary overhead. With archive: false, gh run download fetches the raw file directly without requiring a decompression step. Co-authored-by: Claude <noreply@anthropic.com> (cherry picked from commitf4a50a8fde) --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
8
.github/workflows/apply-patches.yml
vendored
8
.github/workflows/apply-patches.yml
vendored
@@ -71,3 +71,11 @@ jobs:
|
||||
uses: ./src/electron/.github/actions/checkout
|
||||
with:
|
||||
target-platform: linux
|
||||
- name: Upload Patch Conflict Fix
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
||||
with:
|
||||
name: update-patches
|
||||
path: patches/update-patches.patch
|
||||
if-no-files-found: ignore
|
||||
archive: false
|
||||
|
||||
Reference in New Issue
Block a user