Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@@ -0,0 +1,16 @@
+name: "Detect snapshot"
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+jobs:
+ detekt:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Detect SNAPSHOT
+ run: scripts/analysis/detectSNAPSHOT.sh
@@ -16,5 +16,5 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- - name: Runt detekt
+ - name: Run detekt
run: ./gradlew detekt
@@ -0,0 +1,10 @@
+#!/bin/bash
+count=$(./gradlew dependencies | grep SNAPSHOT | grep -v "com.github.nextcloud:android-library" -c)
+if [ $count -eq 0 ] ; then
+ exit 0
+else
+ exit 1
+fi