"#"
This commit is contained in:
12
action.yml
12
action.yml
@@ -56,9 +56,9 @@ runs:
|
||||
env:
|
||||
JOSH_SYNC_DEBUG: ${{ inputs.debug == 'true' && '1' || '0' }}
|
||||
run: |
|
||||
ARGS="--config ${{ inputs.config }}"
|
||||
[[ "${{ inputs.direction }}" == "forward" ]] && ARGS+=" --forward"
|
||||
[[ "${{ inputs.direction }}" == "reverse" ]] && ARGS+=" --reverse"
|
||||
[[ -n "${{ inputs.target }}" ]] && ARGS+=" --target ${{ inputs.target }}"
|
||||
[[ -n "${{ inputs.branch }}" ]] && ARGS+=" --branch ${{ inputs.branch }}"
|
||||
josh-sync sync $ARGS
|
||||
ARGS=(--config "${{ inputs.config }}")
|
||||
[[ "${{ inputs.direction }}" == "forward" ]] && ARGS+=(--forward)
|
||||
[[ "${{ inputs.direction }}" == "reverse" ]] && ARGS+=(--reverse)
|
||||
[[ -n "${{ inputs.target }}" ]] && ARGS+=(--target "${{ inputs.target }}")
|
||||
[[ -n "${{ inputs.branch }}" ]] && ARGS+=(--branch "${{ inputs.branch }}")
|
||||
josh-sync sync "${ARGS[@]}"
|
||||
|
||||
Reference in New Issue
Block a user