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

[Feature] Output changes to json files in filesystem for processing #688

Closed
2 tasks done
neerup opened this issue Oct 13, 2022 · 2 comments · Fixed by #890
Closed
2 tasks done

[Feature] Output changes to json files in filesystem for processing #688

neerup opened this issue Oct 13, 2022 · 2 comments · Fixed by #890
Labels
enhancement New feature or request

Comments

@neerup
Copy link

neerup commented Oct 13, 2022

Is this feature missing in the latest version?

  • I'm using the latest release

Is your feature request related to a problem? Please describe.

No problem. Just a request :)

Describe the solution you'd like?

Be able to have output to files

Use case:
I'm using a java program to process changed and deleted files in my workflow
So to be able to process the result from this action I use something like this
run: |
echo "${{ steps.changed-files.outputs.added_files }}" >> "$HOME/added_files.json"
echo "${{ steps.changed-files.outputs.copied_files }}" >> "$HOME/copied_files.json"
echo "${{ steps.changed-files.outputs.deleted_files }}" >> "$HOME/deleted_files.json"
./mvnw -U -B -q compile exec:java --file ./pom.xml

Would really like to be able to have this action write the files for me.

Something like
Adding some new input parameters:

with:
output_files: true // default false
output_files_folder: $HOME // default $HOME
json: true

Resulting in files being written to disk:
$HOME/added_files.json with json content of steps.changed-files.outputs.added_files
$HOME/deleted_files.json with json content of steps.changed-files.outputs.deleted_files
etc.

Describe alternatives you've considered?

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@neerup neerup added the enhancement New feature or request label Oct 13, 2022
@github-actions
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

@jackton1 jackton1 linked a pull request Dec 19, 2022 that will close this issue
@jackton1
Copy link
Member

@neerup This should be available in the latest release.

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

Successfully merging a pull request may close this issue.

2 participants