This commit is contained in:
2026-02-12 11:22:51 +03:00
parent 7c2d731399
commit f2785241bf
6 changed files with 16 additions and 16 deletions

View File

@@ -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[@]}"