trilom / file-changes-action

This action can be added, and you will get outputs of all of the files that have changed in your repository for you to use.
MIT License
167 stars 48 forks source link

Files_Removed is not initialized as an array after Action's execution #113

Closed tomassiriouala closed 3 years ago

tomassiriouala commented 3 years ago

Describe the bug Hey there, I've been using this action for a couple of days and I've been trying to get an array with the removed files from the repository but to no avail.

This is the execution of Github Actions. As you can see, both the files_removed and files variables were not initialized.

files_modified=[".github/workflows/deploy-lambda-snapshot.yaml"] files_added=["test-add-aws-lambda/CHANGELOG.md","test-add-aws-lambda/README.md","test-add-aws-lambda/pom.xml"] files_removed= files= echo "::set-output name=FILES::$files" echo "::set-output name=FILES_MODIFIED::$files_modified" echo "::set-output name=FILES_ADDED::$files_added" echo "::set-output name=FILES_REMOVED::$files_removed"

image

This is the implementation. It's mostly the same as in the README file

`

image

Workflow Just a step implemented as the documentation says

Expected behavior I should at least get an empty array instead of an empty variable for files_removed and files

Additional context Cool project Though

tomassiriouala commented 3 years ago

Never mind. I was using version 1

image

The issue was fixed when version 1.2.4 was executed