New custom-logic
action input
This commit is contained in:
parent
085c3a0b6d
commit
970a78cced
1 changed files with 8 additions and 0 deletions
|
@ -92,6 +92,10 @@ inputs:
|
||||||
description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created'
|
description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
custom-logic:
|
||||||
|
description: 'Custom shell commands to execute just before the PR creation (after the commit creation)'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
outputs:
|
outputs:
|
||||||
pull-request-number:
|
pull-request-number:
|
||||||
description: 'The number of the opened pull request'
|
description: 'The number of the opened pull request'
|
||||||
|
@ -158,6 +162,10 @@ runs:
|
||||||
GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//$'\r'/'%0D'}"
|
GIT_COMMIT_MESSAGE="${GIT_COMMIT_MESSAGE//$'\r'/'%0D'}"
|
||||||
echo "GIT_COMMIT_MESSAGE=$GIT_COMMIT_MESSAGE" >> $GITHUB_ENV
|
echo "GIT_COMMIT_MESSAGE=$GIT_COMMIT_MESSAGE" >> $GITHUB_ENV
|
||||||
echo "GIT_COMMIT_MESSAGE is: ${GIT_COMMIT_MESSAGE}"
|
echo "GIT_COMMIT_MESSAGE is: ${GIT_COMMIT_MESSAGE}"
|
||||||
|
- name: Set additional env variables (custom logic)
|
||||||
|
shell: bash
|
||||||
|
if: ${{ inputs.custom-logic != '' }}
|
||||||
|
run: ${{ inputs.custom-logic }}
|
||||||
- name: Interpolate PR Body
|
- name: Interpolate PR Body
|
||||||
uses: pedrolamas/handlebars-action@v2.2.0
|
uses: pedrolamas/handlebars-action@v2.2.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue