You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encounter an issue when using the parameter matrix.
In my example the output yields in [demo,homepage]
When using the matrix in the next job I encounter the errror ERRO[0006] Error while evaluating matrix: Invalid JSON: unexpected end of JSON input FATA[0006] Failed to decode node {4 0 !!map <nil> [0x1400041ec80 0x1400041ed20] 45 9} into *map[string][]interface {}: yaml: unmarshal errors: line 45: cannot unmarshal !!str ${{ fro...into []interface {}
However when I hard code the expected matrix value the action works fine.
`
- name: Changed Directories
id: changed_dirs
uses: tj-actions/[email protected]
with:
dir_names: true
matrix: true
path: 'compose-stacks'
- name: List all changed Directories
id: get_changed_dirs
run: |
echo "${{ steps.changed_dirs.outputs.all_changed_files }}"
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
I encounter an issue when using the parameter matrix.
In my example the output yields in
[demo,homepage]
When using the matrix in the next job I encounter the errror
ERRO[0006] Error while evaluating matrix: Invalid JSON: unexpected end of JSON input FATA[0006] Failed to decode node {4 0 !!map <nil> [0x1400041ec80 0x1400041ed20] 45 9} into *map[string][]interface {}: yaml: unmarshal errors: line 45: cannot unmarshal !!str
${{ fro...into []interface {}
However when I hard code the expected matrix value the action works fine.
`
- name: Changed Directories
id: changed_dirs
uses: tj-actions/[email protected]
with:
dir_names: true
matrix: true
path: 'compose-stacks'
deploy:
needs: [changed-dirs]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dir: ${{ fromJson(needs.changed-dirs.outputs.matrix) }}
#dir: [demo,homepage]
`
To Reproduce
This might be tricky as I am using a private repo. The relevant parts of the workflow file is copied/pasted above.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
The output should be used as matrix value in the next job.
Relevant log output
Has all relevant logs been included?
Anything else?
This is maybe just me missing something rather than a bug. Any input is highly appreciated.
Code of Conduct
The text was updated successfully, but these errors were encountered: