Add working-directory input

This commit is contained in:
Christian Stein 2021-03-30 12:03:01 +02:00 committed by Andres Almiray
parent 867377381d
commit d7a9d6425c

View file

@ -18,11 +18,17 @@ inputs:
default: 'full-release'
required: true
working-directory:
required: true
default: ${{ github.workspace }}
description: 'The directory to change into.'
runs:
using: 'composite'
steps:
- name: 'Download JReleaser'
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
echo "::group::📦 Download JReleaser"
java "${{ github.action_path }}/copy.java" ${{ inputs.version }}
@ -31,6 +37,7 @@ runs:
- name: 'Execute JReleaser'
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
echo "☕ java -jar jreleaser-cli.jar ${{ inputs.arguments }}"
java -jar jreleaser-cli.jar ${{ inputs.arguments }}