diff --git a/.github/workflows/central_code_quality_check.yml b/.github/workflows/central_code_quality_check.yml index b5be702112c..3c8ca4c4df9 100644 --- a/.github/workflows/central_code_quality_check.yml +++ b/.github/workflows/central_code_quality_check.yml @@ -8,10 +8,25 @@ on: branches: - master - main + - "!update-pycloud-in-**" + paths-ignore: + - 'docker-jans-**/CHANGELOG.md' + - 'docker-jans-**/version.txt' + - 'jans-pycloudlib/CHANGELOG.md' + - 'jans-pycloudlib/jans/pycloudlib/version.py' + - '**.md' + pull_request: branches: - master - main + - "!update-pycloud-in-**" + paths-ignore: + - 'docker-jans-**/CHANGELOG.md' + - 'docker-jans-**/version.txt' + - 'jans-pycloudlib/CHANGELOG.md' + - 'jans-pycloudlib/jans/pycloudlib/version.py' + - '**.md' workflow_dispatch: jobs: build: @@ -30,15 +45,6 @@ jobs: NON_JVM_PROJECTS: | JanssenProject/jans-setup JanssenProject/jans-cli - JanssenProject/docker-jans-persistence-loader - JanssenProject/docker-jans-client-api - JanssenProject/jans-pycloudlib - JanssenProject/docker-jans-auth-server - JanssenProject/docker-jans-fido2 - JanssenProject/docker-jans-scim - JanssenProject/docker-jans-config-api - JanssenProject/docker-jans-certmanager - JanssenProject/docker-jans-configuration-manager JanssenProject/jans-cloud-native steps: - uses: actions/checkout@v2 @@ -48,7 +54,7 @@ jobs: - name: Set up JDK 11 # JanssenProject/jans-cli is too similar to JanssenProject/jans-client-api as the contains function is returning it belonging to the JVM_PROJECT if: contains(env.JVM_PROJECTS, github.repository) && github.repository != 'JanssenProject/jans-cli' - uses: actions/setup-java@v2.3.1 + uses: actions/setup-java@v2.5.0 with: java-version: '11' distribution: 'adopt' @@ -56,7 +62,7 @@ jobs: - name: Cache SonarCloud packages for JVM based project # JanssenProject/jans-cli is too similar to JanssenProject/jans-client-api as the contains function is returning it belonging to the JVM_PROJECT if: contains(env.JVM_PROJECTS, github.repository) && github.repository != 'JanssenProject/jans-cli' - uses: actions/cache@v2.1.6 + uses: actions/cache@v2.1.7 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml index c92c69e1d8d..a84897dfce9 100644 --- a/.github/workflows/commit-check.yml +++ b/.github/workflows/commit-check.yml @@ -3,18 +3,39 @@ name: 'Commit Message Check' on: pull_request: + branches-ignore: + - "update-pycloud-in-**" types: - opened - edited - reopened - synchronize + paths: + - "!docker-jans-**/CHANGELOG.md" + - "!docker-jans-**/version.txt" + - "!jans-pycloudlib/CHANGELOG.md" + - "!jans-pycloudlib/jans/pycloudlib/version.py" pull_request_target: + branches-ignore: + - "update-pycloud-in-**" types: - opened - edited - reopened - synchronize + paths: + - "!docker-jans-**/CHANGELOG.md" + - "!docker-jans-**/version.txt" + - "!jans-pycloudlib/CHANGELOG.md" + - "!jans-pycloudlib/jans/pycloudlib/version.py" push: + branches-ignore: + - "update-pycloud-in-**" + paths: + - "!docker-jans-**/CHANGELOG.md" + - "!docker-jans-**/version.txt" + - "!jans-pycloudlib/CHANGELOG.md" + - "!jans-pycloudlib/jans/pycloudlib/version.py" jobs: check-commit-message: @@ -27,7 +48,7 @@ jobs: # We need to fetch with a depth of 2 for pull_request so we can do HEAD^2 fetch-depth: 2 - - uses: actions/setup-node@v2.4.1 + - uses: actions/setup-node@v2.5.0 with: node-version: 14 - run: |