Skip to content

Commit c041c5e

Browse files
authored
[bug] Fix parent Neonctl parameter affected by IFS (#61)
* [bug] Fix parent Neonctl parameter affected by IFS * + github.action.ref
1 parent feb0f3d commit c041c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ runs:
7676
ANNOTATION_COMMIT_SHA: ${{ github.event.after || '' }}
7777
ANNOTATION_COMMIT_REF: ${{ github.event.ref || github.event.pull_request.head.ref || '' }}
7878
ANNOTATION_COMMIT_MESSAGE: ${{ github.event.head_commit.message || '' }}
79+
ANNOTATION_ACTION_REF: ${{ github.action_ref || '' }}
7980
id: create-branch
8081
shell: bash
8182
run: |
@@ -92,6 +93,7 @@ runs:
9293
--arg github-pr-number "${ANNOTATION_PR_NUMBER}" \
9394
--arg github-pr-title "${ANNOTATION_PR_TITLE}" \
9495
--arg github-commit-ref "${ANNOTATION_COMMIT_REF}" \
96+
--arg github-action-ref "${ANNOTATION_ACTION_REF}" \
9597
)
9698
9799
# set IFS (internal file separator) to \n to avoid JSON space being an arguments separator
@@ -101,7 +103,7 @@ runs:
101103
--project-id ${{ inputs.project_id }} \
102104
--name "${{ inputs.branch_name }}" \
103105
--suspend-timeout ${{ inputs.suspend_timeout }} \
104-
$(if [[ -n "${{ inputs.parent }}" ]]; then echo "--parent ${{ inputs.parent }}"; fi) \
106+
$(if [[ -n "${{ inputs.parent }}" ]]; then echo "--parent=${{ inputs.parent }}"; fi) \
105107
--output json \
106108
$(if [[ -n "${annotation_json}" ]]; then echo "--annotation='$annotation_json'"; fi) \
107109
2> branch_err > branch_out || true

0 commit comments

Comments
 (0)