Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to print an array value #8

Open
bh3r1th opened this issue Nov 28, 2023 · 2 comments
Open

Unable to print an array value #8

bh3r1th opened this issue Nov 28, 2023 · 2 comments

Comments

@bh3r1th
Copy link

bh3r1th commented Nov 28, 2023

My input YAML file has these values.

domain_name: domain
env_name: dev
dataset_id: ["dataset_name1", "dataset_name2"]

This code is printing an empty value for dataset_id

- name: Read YAML file
        id: read-yaml-file
        uses: pietrobolcato/[email protected]
        with:
          config: ${{ github.workspace }}/${{ steps.run_git_diff.outputs.file_name }}
      - name: Get dataset name
        id: get_ds_name
        run: |
          echo "dataset_id=${{ steps.read-yaml-file.outputs['dataset_id'] }}"

Can someone tell me why?

@iamroddo
Copy link

iamroddo commented Dec 6, 2023

I'm seeing something similar. The action can read a scalar variable in YAML but not a dict.

@fcatacut
Copy link

This should be fixed by #6. You would be able to access this using dataset_id.array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants