Skip to content

Commit 3f6fdfb

Browse files
committed
chore: Add patch input to vendor-upgrade workflow
Risk: low
1 parent 2cada5a commit 3f6fdfb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/vendor-upgrade.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
required: true
1111
default: 'latest'
1212
type: string
13+
patch:
14+
description: 'Contents of patch file to apply before committing'
15+
required: false
16+
default: ''
17+
type: string
1318

1419
jobs:
1520
upgrade:
@@ -156,6 +161,14 @@ jobs:
156161
git config user.email "git-action@gooddata.com"
157162
158163
git checkout -b "$BRANCH_NAME"
164+
165+
PATCH="${{ inputs.patch }}"
166+
if [[ -n "$PATCH" ]]; then
167+
printf '%b' "$PATCH" > /tmp/vendor-upgrade.patch
168+
git apply /tmp/vendor-upgrade.patch
169+
echo "Applied patch"
170+
fi
171+
159172
git add .
160173
161174
if git diff --cached --quiet; then

0 commit comments

Comments
 (0)