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

Accessing the number of changed/added files #20

Open
johentsch opened this issue Apr 27, 2021 · 0 comments
Open

Accessing the number of changed/added files #20

johentsch opened this issue Apr 27, 2021 · 0 comments

Comments

@johentsch
Copy link

Hi there, thanks for this action, it works really well in our automated workflows!

There is one thing I don't know how to achieve and was wondering if you already know a solution: Most of your workflows act on modified or added files, meaning that they don't actually need to run if there are none (wasting server time and energy with installing libraries for nothing). However, I haven't found a way to test the size of a JSON array to include it in an if: clause. There might be a way to count elements after using join(steps.modified.outputs.modified) but I didn't manage. By any chance, have you or anyone else already encountered this and found a solution?

Otherwise, would it be easy to add another set of properties such as modified_n, added_n etc. to get the numbers? You wouldn't believe how much that would be helpful and appreciated.

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

1 participant