Skip to content

Commit

Permalink
Add base_branch as inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Oct 22, 2024
1 parent a84774c commit 0a780d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actions/commit_pr_and_merge/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ inputs:
add:
description: Comma- or newline-separated list of paths to add
required: true
base_branch:
description: The base branch we want to merge into
type: string
default: ${{ github.ref_name }}
outputs:
git_tag_or_hash:
description: The git tag (or hash if no tag provided) of the merge commit
Expand Down Expand Up @@ -44,7 +48,7 @@ runs:
repo: context.repo.repo,
title: '[CI Pipeline] ${{ inputs.message }}',
head: 'ci-${{ github.sha }}',
base: '${{ github.ref_name }}',
base: '${{ inputs.base_branch }}',
body: '[CI Pipeline] Automated update'
})).data;
core.setOutput('pull-request-url', newPr.html_url);
Expand Down

0 comments on commit 0a780d7

Please sign in to comment.