Skip to content

Commit c132b8a

Browse files
committed
Update context variable handling in deploy action to use direct input references for improved command execution consistency.
1 parent 4ece678 commit c132b8a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎actions/deploy/action.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ runs:
6565

6666
- name: Run storm workflow
6767
shell: bash
68-
env:
69-
GITHUB_CONTEXT: ${{ inputs.github }}
70-
SECRETS_CONTEXT: ${{ inputs.secrets }}
71-
VARS_CONTEXT: ${{ inputs.vars }}
7268
run: |
7369
ARGS=()
74-
[ -n "$GITHUB_CONTEXT" ] && ARGS+=(--context 'github:$GITHUB_CONTEXT')
75-
[ -n "$SECRETS_CONTEXT" ] && ARGS+=(--context 'secrets:$SECRETS_CONTEXT')
76-
[ -n "$VARS_CONTEXT" ] && ARGS+=(--context 'vars:$VARS_CONTEXT')
70+
[ -n "$GITHUB_CONTEXT" ] && ARGS+=(--context 'github:${{ inputs.github }}')
71+
[ -n "$SECRETS_CONTEXT" ] && ARGS+=(--context 'secrets:${{ inputs.secrets }}')
72+
[ -n "$VARS_CONTEXT" ] && ARGS+=(--context 'vars:${{ inputs.vars }}')
7773
7874
storm agent run "${ARGS[@]}" -i ${{ inputs.inventory }} ${{ inputs.workflow }}

0 commit comments

Comments
 (0)
⌂ 换网址