mirror of https://github.com/nextcloud/android
Detect dependencies with snapshot
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
b536684170
commit
38e27420c3
|
@ -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
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue