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

[BUG] files_yaml + json does not write the outputs to a json file #1759

Closed
4 tasks done
dkezri opened this issue Nov 29, 2023 · 1 comment · Fixed by #1762
Closed
4 tasks done

[BUG] files_yaml + json does not write the outputs to a json file #1759

dkezri opened this issue Nov 29, 2023 · 1 comment · Fixed by #1762
Labels
bug Something isn't working

Comments

@dkezri
Copy link

dkezri commented Nov 29, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

using the following pattern in files changes:

      - name: Github filechanges
        id: files
        uses: tj-actions/changed-files@v40
        with:
          files_yaml: |
            metrics:
              - '**/site_files/**'
          json: true
          write_output_files: true

It writes the output when i use steps.files.outputs.metrics_all_changed_files , but the list is too long so that i wanted to write the output to a json file and read from it later.

To Reproduce

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-22.04

Expected behavior?

no json file is created in .github/outputs

Relevant log output

the result in github action :


Run ls -la .github/
total 12
drwxr-xr-x 3 root root 4096 Nov [29]
drwxr-xr-x 5 root root 4096 Nov 29 09:22 ..
drwxr-xr-x 3 root root 4096 Nov 29 09:22 workflows
ls: cannot access '.github/outputs': No such file or directory
Error: Process completed with exit code 2.

Has all relevant logs been included?

  • I've included all relevant logs

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dkezri dkezri added the bug Something isn't working label Nov 29, 2023
@jackton1 jackton1 changed the title files_yaml + json not writes the output to json file files_yaml + json does not writes the output to json file Nov 29, 2023
@jackton1 jackton1 changed the title files_yaml + json does not writes the output to json file files_yaml + json does not write the outputs toa json file Nov 29, 2023
@jackton1 jackton1 changed the title files_yaml + json does not write the outputs toa json file files_yaml + json does not write the outputs to a json file Nov 29, 2023
@jackton1 jackton1 linked a pull request Nov 29, 2023 that will close this issue
@jackton1
Copy link
Member

jackton1 commented Nov 30, 2023

Hi @dkezri, unfortunately I’m unable to replicate this bug here.

IMG_0461

I’ll suggest providing the logs with debugging enabled. I’ll reopen this issue if further debugging/resolution is required. Thanks

@jackton1 jackton1 changed the title files_yaml + json does not write the outputs to a json file [BUG] files_yaml + json does not write the outputs to a json file Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants