Skip to content

Commit e28186e

Browse files
committed
fix: use -c to preserve behavior with 1.9.0
Flox 1.9.0 is replacing the previous behavior of `--` with `-c`. Update to use `-c`. If we keep using `--`, that will prevent running shell commands like `cmd && cmd`, which seems undesirable
1 parent 74aa859 commit e28186e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ runs:
2222
steps:
2323
- name: "Run flox activate"
2424
shell: "bash"
25-
run: "flox activate ${{ inputs.environment != null && format('-r={0}', inputs.environment) || '' }} ${{ inputs.dir != null && format('--dir={0}', inputs.dir) || '' }} -- ${{ inputs.command }}"
25+
run: "flox activate ${{ inputs.environment != null && format('-r={0}', inputs.environment) || '' }} ${{ inputs.dir != null && format('--dir={0}', inputs.dir) || '' }} -c '${{ inputs.command }}'"

0 commit comments

Comments
 (0)