Skip to content

Commit 5c9d16f

Browse files
polldoper1234
andauthored
Update .github/workflows/check-dependencies-task.yml
Co-authored-by: per1234 <[email protected]>
1 parent 4199ddd commit 5c9d16f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ jobs:
5959
- name: Check for outdated cache
6060
id: diff
6161
run: |
62-
git add --intent-to-add .
63-
git diff --color --exit-code
62+
git add .
63+
if ! git diff --cached --color --exit-code; then
64+
echo
65+
echo "::error::Dependency license metadata out of sync. See: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-go-dependencies-task.md#metadata-cache"
66+
exit 1
67+
fi
6468
6569
# Some might find it convenient to have CI generate the cache rather than setting up for it locally
6670
- name: Upload cache to workflow artifact

0 commit comments

Comments
 (0)