From 3f6fdfb0c9a2bfa5e3675606ae49a251908b4f6f Mon Sep 17 00:00:00 2001 From: Martin Najemi Date: Sat, 4 Apr 2026 18:51:16 +0200 Subject: [PATCH] chore: Add patch input to vendor-upgrade workflow Risk: low --- .github/workflows/vendor-upgrade.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/vendor-upgrade.yml b/.github/workflows/vendor-upgrade.yml index 34416d5..3892f76 100644 --- a/.github/workflows/vendor-upgrade.yml +++ b/.github/workflows/vendor-upgrade.yml @@ -10,6 +10,11 @@ on: required: true default: 'latest' type: string + patch: + description: 'Contents of patch file to apply before committing' + required: false + default: '' + type: string jobs: upgrade: @@ -156,6 +161,14 @@ jobs: git config user.email "git-action@gooddata.com" git checkout -b "$BRANCH_NAME" + + PATCH="${{ inputs.patch }}" + if [[ -n "$PATCH" ]]; then + printf '%b' "$PATCH" > /tmp/vendor-upgrade.patch + git apply /tmp/vendor-upgrade.patch + echo "Applied patch" + fi + git add . if git diff --cached --quiet; then