We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa3751f commit 3fdf9d5Copy full SHA for 3fdf9d5
.github/workflows/prevent-publicapi-addition.yml
@@ -9,15 +9,16 @@ jobs:
9
- name: Checkout code
10
uses: actions/checkout@v3
11
12
- - name: Scan for accidental PublicAPI text file references
+ - name: Scan for accidental PublicAPI references
13
run: |
14
set -e # Stop on first error
15
-
+
16
# Find all .csproj files and check for unwanted lines
17
if find . -name "*.csproj" -exec grep -q "PublicAPI.Shipped.txt" {} \; || \
18
- find . -name "*.csproj" -exec grep -q "PublicAPI.Unshipped.txt" {} \; then
+ find . -name "*.csproj" -exec grep -q "PublicAPI.Unshipped.txt" {} \;
19
+ then
20
echo "Error: PublicAPI.Shipped.txt or PublicAPI.Unshipped.txt detected in a .csproj file."
21
exit 1
- else
22
- echo "All good - No PublicAPI references found."
23
fi
24
+ echo "All good - No PublicAPI references found."
0 commit comments