Skip to content

Commit 41e6809

Browse files
committed
Configure actions/upload-artifact action to upload hidden files
A breaking change was made in the 3.2.1 release of the "actions/upload-artifact" action, without doing a major version bump as would be done in a responsibly maintained project. The action now defaults to not uploading "hidden" files. The dependency license metadata cache is stored in a folder named `.licensed`. The "Check npm Dependencies" workflow uploads the generated cache as a workflow artifact when the current cache is found to be outdated in order to facilitate the update of the cache. The `.` at the start of the `.licensed` folder name causes it to now not be uploaded to the workflow artifact. In order to catch such problems, the workflow configures the "actions/upload-artifact" action to fail if no files were uploaded. So the workflow now fails: Error: No files were found with the provided path: .licenses/. No artifacts will be uploaded. The problem is fixed by disabling the "actions/upload-artifact" action's new behavior via the `include-hidden-files` input.
1 parent e45e78e commit 41e6809

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/check-npm-dependencies-task.yml

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
uses: actions/upload-artifact@v3
104104
with:
105105
if-no-files-found: error
106+
include-hidden-files: true
106107
name: dep-licenses-cache
107108
path: .licenses/
108109

0 commit comments

Comments
 (0)