Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/vendor-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
Loading