File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # synced from @nextcloud/android-config
12version : 2
23updates :
3- - package-ecosystem : gradle
4- directory : " /"
5- schedule :
6- interval : daily
7- open-pull-requests-limit : 10
8- - package-ecosystem : github-actions
9- directory : " /"
10- schedule :
11- interval : daily
12- open-pull-requests-limit : 10
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " weekly"
8+ - package-ecosystem : gradle
9+ directory : " /"
10+ schedule :
11+ interval : daily
12+ time : " 03:00"
13+ timezone : Europe/Paris
14+ rebase-strategy : " disabled"
15+ open-pull-requests-limit : 10
16+ labels :
17+ - 3. to review
18+ - dependencies
Original file line number Diff line number Diff line change 1+ # synced from @nextcloud/android-config
2+ name : Auto approve
3+ on :
4+ pull_request_target :
5+ branches :
6+ - master
7+ - main
8+
9+ permissions :
10+ pull-requests : write
11+
12+ jobs :
13+ auto-approve :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
17+ if : ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
18+ with :
19+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change 1- name : CodeQL security scan
1+ # synced from @nextcloud/android-config
2+ name : " CodeQL"
23
34on :
5+ push :
6+ branches : [ "master", "main", "stable-*" ]
47 pull_request :
8+ branches : [ "master", "main" ]
59 schedule :
6- - cron : ' 0 12 * * * '
10+ - cron : ' 24 18 * * 3 '
711
812permissions :
913 contents : read
10- security-events : write
11- pull-requests : read
1214
1315jobs :
14- codeql :
15- name : CodeQL security scan
16+ analyze :
17+ name : Analyze
1618 runs-on : ubuntu-latest
19+ permissions :
20+ actions : read
21+ contents : read
22+ security-events : write
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ language : [ 'java' ]
1727 steps :
18- - name : Checkout
19- uses : actions/checkout@v3
28+ - name : Checkout repository
29+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
30+ - name : Set Swap Space
31+ uses : pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
32+ with :
33+ swap-size-gb : 10
2034 - name : Initialize CodeQL
21- uses : github/codeql-action/init@v2
35+ uses : github/codeql-action/init@436dbd9100756e97f42f45da571adeebf8270723 # v2.2.0
36+ with :
37+ languages : ${{ matrix.language }}
38+ - name : Set up JDK
39+ uses : actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b # v3.9.0
2240 with :
23- languages : java
24- - name : Build debug APK
25- run : bash ./gradlew assembleDev --stacktrace
41+ distribution : " temurin"
42+ java-version : 11
43+ - name : Assemble
44+ run : |
45+ mkdir -p "$HOME/.gradle"
46+ echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
47+ ./gradlew assembleDebug
2648 - name : Perform CodeQL Analysis
27- uses : github/codeql-action/analyze@v2
49+ uses : github/codeql-action/analyze@436dbd9100756e97f42f45da571adeebf8270723 # v2.2.0
Original file line number Diff line number Diff line change 1+ # synced from @nextcloud/android-config
2+ name : " Detect new java files"
3+
4+ on :
5+ pull_request :
6+ branches : [ master, main, stable-* ]
7+
8+ permissions : read-all
9+
10+ jobs :
11+ detectNewJavaFiles :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - id : file_changes
15+ uses : trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
16+ with :
17+ output : ' ,'
18+ - name : Detect new java files
19+ run : |
20+ if [ -z '${{ steps.file_changes.outputs.files_added }}' ]; then
21+ echo "No new files added"
22+ exit 0
23+ fi
24+ new_java=$(echo '${{ steps.file_changes.outputs.files_added }}' | tr ',' '\n' | grep '\.java$' | cat)
25+ if [ -n "$new_java" ]; then
26+ # shellcheck disable=SC2016
27+ printf 'New java files detected:\n```\n%s\n```\n' "$new_java" | tee "$GITHUB_STEP_SUMMARY"
28+ exit 1
29+ else
30+ echo "No new java files detected"
31+ exit 0
32+ fi
Original file line number Diff line number Diff line change 1+ # synced from @nextcloud/android-config
2+ name : ' Close stale issues'
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * *'
6+
7+ # Declare default permissions as read only.
8+ permissions : read-all
9+
10+ jobs :
11+ stale :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ issues : write
15+ pull-requests : write
16+ steps :
17+ - uses : actions/stale@6f05e4244c9a0b2ed3401882b05d701dd0a7289b # v7.0.0
18+ with :
19+ days-before-stale : 28
20+ days-before-close : 14
21+ days-before-pr-close : -1
22+ only-labels : ' bug,needs info'
23+ exempt-issue-labels : ' no-stale'
24+ stale-issue-message : >-
25+ This bug report did not receive an update in the last 4 weeks.
26+ Please take a look again and update the issue with new details,
27+ otherwise the issue will be automatically closed in 2 weeks. Thank you!
28+ exempt-all-pr-milestones : true
You canβt perform that action at this time.
0 commit comments