Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 3 additions & 5 deletions step.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
set -ex

echo "This is the value specified for the input 'example_step_input': ${example_step_input}"

#
# --- Export Environment Variables for other Steps:
# You can export Environment Variables for other Steps with
Expand Down Expand Up @@ -44,15 +42,15 @@ create_pr() {
exit 1
}

git fetch
git fetch -q

#! Checkout the branch to merge from
git checkout $branch_to_merge_from

#! Checkout the branch to merge into
git checkout $branch_to_merge_into

git merge $branch_to_merge_from || create_pr
git merge $branch_to_merge_from $additional_merge_options || create_pr

echo 'no conflicts'

Expand All @@ -62,4 +60,4 @@ git push
#! Return success
exit 0

fi
fi
8 changes: 8 additions & 0 deletions step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ inputs:
a git branch name
is_expand: true
is_required: true
- additional_merge_options:
opts:
title: "Additional merge options"
summary: Extra --options to add to git merge
description: |
command line options allowed by git merge
is_expand: true
is_required: false

outputs:
- CREATED_PULL_REQUEST:
Expand Down