Detect dependencies with snapshot

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-01-04 13:48:29 +01:00
parent b536684170
commit 38e27420c3
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
3 changed files with 27 additions and 1 deletions

16
.github/workflows/detectSnaphost.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: "Detect snapshot"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
detekt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Detect SNAPSHOT
run: scripts/analysis/detectSNAPSHOT.sh

View File

@ -16,5 +16,5 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Runt detekt
- name: Run detekt
run: ./gradlew detekt

View File

@ -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