Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2021-01-05 23:42:16 +0300
committerGitHub <noreply@github.com>2021-01-05 23:42:16 +0300
commitca2a60ea4b11cbf97af7c23ffac745c3c6efc937 (patch)
treeb7df9491ebfe3063105f45243a910c32250eb257
parentd4c6203f3f58e3b17917667ba2e605bdcafa4a87 (diff)
parentb3fe24447d1f6ba38c99e50794fd6a7bd242f734 (diff)
Merge pull request #567 from nextcloud/backport/566/stable-2.42.4.2stable-2.4
[stable-2.4] Detect dependencies with snapshot
-rw-r--r--.github/workflows/detectSnaphost.yml16
-rw-r--r--.github/workflows/detekt.yml4
-rw-r--r--.github/workflows/gradle-wrapper-validation.yml7
-rw-r--r--.github/workflows/ktlint.yml4
-rwxr-xr-xscripts/analysis/detectSNAPSHOT.sh10
5 files changed, 36 insertions, 5 deletions
diff --git a/.github/workflows/detectSnaphost.yml b/.github/workflows/detectSnaphost.yml
new file mode 100644
index 00000000..ed0c3909
--- /dev/null
+++ b/.github/workflows/detectSnaphost.yml
@@ -0,0 +1,16 @@
+name: "Detect snapshot"
+
+on:
+ push:
+ branches: [ stable-2.4 ]
+ pull_request:
+ branches: [ stable-2.4 ]
+
+jobs:
+ detekt:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Detect SNAPSHOT
+ run: scripts/analysis/detectSNAPSHOT.sh
diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml
index 760ed01e..81a117e4 100644
--- a/.github/workflows/detekt.yml
+++ b/.github/workflows/detekt.yml
@@ -2,9 +2,9 @@ name: Detekt
on:
push:
- branches: [ master ]
+ branches: [ stable-2.4 ]
pull_request:
- branches: [ master ]
+ branches: [ stable-2.4 ]
jobs:
detekt:
diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml
index 62850322..3a71e39b 100644
--- a/.github/workflows/gradle-wrapper-validation.yml
+++ b/.github/workflows/gradle-wrapper-validation.yml
@@ -1,5 +1,10 @@
name: "Validate Gradle Wrapper"
-on: [push, pull_request]
+
+on:
+ push:
+ branches: [ stable-2.4 ]
+ pull_request:
+ branches: [ stable-2.4 ]
jobs:
validation:
diff --git a/.github/workflows/ktlint.yml b/.github/workflows/ktlint.yml
index 758f0502..4a3fff52 100644
--- a/.github/workflows/ktlint.yml
+++ b/.github/workflows/ktlint.yml
@@ -2,9 +2,9 @@ name: KtLint
on:
push:
- branches: [ master ]
+ branches: [ stable-2.4 ]
pull_request:
- branches: [ master ]
+ branches: [ stable-2.4 ]
jobs:
ktlint:
diff --git a/scripts/analysis/detectSNAPSHOT.sh b/scripts/analysis/detectSNAPSHOT.sh
new file mode 100755
index 00000000..cb7deffe
--- /dev/null
+++ b/scripts/analysis/detectSNAPSHOT.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+count=$(./gradlew dependencies | grep SNAPSHOT -c)
+
+if [ $count -eq 0 ] ; then
+ exit 0
+else
+ exit 1
+fi
+