File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 9
9
- name : Checkout code
10
10
uses : actions/checkout@v3
11
11
12
- - name : Scan for accidental PublicAPI text file references
12
+ - name : Scan for accidental PublicAPI references
13
13
run : |
14
14
set -e # Stop on first error
15
-
15
+
16
16
# Find all .csproj files and check for unwanted lines
17
17
if find . -name "*.csproj" -exec grep -q "PublicAPI.Shipped.txt" {} \; || \
18
- find . -name "*.csproj" -exec grep -q "PublicAPI.Unshipped.txt" {} \; then
18
+ find . -name "*.csproj" -exec grep -q "PublicAPI.Unshipped.txt" {} \;
19
+ then
19
20
echo "Error: PublicAPI.Shipped.txt or PublicAPI.Unshipped.txt detected in a .csproj file."
20
21
exit 1
21
- else
22
- echo "All good - No PublicAPI references found."
23
22
fi
23
+
24
+ echo "All good - No PublicAPI references found."
You can’t perform that action at this time.
0 commit comments