You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2023/05/06 09:18:08 UTC
[shardingsphere] branch master updated: Refactor : refactor the sonarcloud workflow to nightly trigger (#25492)
This is an automated email from the ASF dual-hosted git repository.
panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new cfc2a35c0af Refactor : refactor the sonarcloud workflow to nightly trigger (#25492)
cfc2a35c0af is described below
commit cfc2a35c0affba03e51d2e7aacd6469424aab5a1
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Sat May 6 17:17:59 2023 +0800
Refactor : refactor the sonarcloud workflow to nightly trigger (#25492)
---
.github/workflows/nightly-check-sonarcloud.yml | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/nightly-check-sonarcloud.yml b/.github/workflows/nightly-check-sonarcloud.yml
index 97f90e74dd5..ab568d3bf1c 100644
--- a/.github/workflows/nightly-check-sonarcloud.yml
+++ b/.github/workflows/nightly-check-sonarcloud.yml
@@ -16,9 +16,10 @@
#
name: Nightly Check - SonarCloud
+
on:
schedule:
- - cron: '0 */1 * * *' # every two hours
+ - cron: '0 20 */1 * *' # once a day. UTC time
workflow_dispatch:
concurrency:
@@ -26,12 +27,14 @@ concurrency:
cancel-in-progress: true
env:
- REPOSITORY_NAME: shardingsphere
+ CACHE_PREFIX: shardingsphere
jobs:
build:
+ if: github.repository == 'apache/shardingsphere'
name: Build and analyze
runs-on: ubuntu-latest
+ timeout-minutes: 40
steps:
- uses: actions/checkout@v3
with:
@@ -40,7 +43,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: 11
- distribution: 'zulu'
+ distribution: 'temurin'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
@@ -51,9 +54,9 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+ key: ${{ env.CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ env.REPOSITORY_NAME }}-maven-third-party-
+ ${{ env.CACHE_PREFIX }}-maven-third-party-
- name: Build and analyze
env:
MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g -XX:+UseStringDeduplication"