Skip to content

Commit ca1ccfc

Browse files
committed
ci(workflows): sync central workflows
Signed-off-by: mo-auto <[email protected]>
1 parent b41405f commit ca1ccfc

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

Diff for: .github/workflows/central_code_quality_check.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ on:
88
branches:
99
- master
1010
- main
11+
- "4.5"
1112
pull_request:
1213
branches:
1314
- master
1415
- main
16+
- "4.5"
1517
workflow_dispatch:
18+
1619
jobs:
1720
build:
1821
runs-on: ubuntu-latest
@@ -31,20 +34,20 @@ jobs:
3134
GluuFederation/gluu-admin-ui
3235
3336
steps:
34-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3538
with:
3639
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of sonarqube analysis
3740

3841
- name: Set up JDK 11
3942
if: contains(env.JVM_PROJECTS, github.repository)
40-
uses: actions/setup-java@v3.3.0
43+
uses: actions/setup-java@v4.0.0
4144
with:
42-
java-version: '11'
45+
java-version: 11
4346
distribution: 'adopt'
4447

4548
- name: Cache SonarCloud packages for JVM based project
4649
if: contains(env.JVM_PROJECTS, github.repository)
47-
uses: actions/cache@v3.0.2
50+
uses: actions/cache@v3.3.2
4851
with:
4952
path: ~/.sonar/cache
5053
key: ${{ runner.os }}-sonar

Diff for: .github/workflows/commit-check.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ jobs:
2020
check-commit-message:
2121
name: Check Commit Message
2222
runs-on: ubuntu-latest
23+
2324
steps:
2425
- name: Checkout Project
25-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2627
with:
2728
# We need to fetch with a depth of 2 for pull_request so we can do HEAD^2
2829
fetch-depth: 2
2930

30-
- uses: actions/setup-node@v3.1.1
31+
- uses: actions/setup-node@v4.0.0
3132
with:
3233
node-version: 14
34+
3335
- run: |
3436
npm install --save-dev @commitlint/{config-conventional,cli}
3537
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
@@ -73,7 +75,6 @@ jobs:
7375
# pattern: '^.+(Resolves|Fixes): \#[0-9]+$'
7476
# error: 'You need at least one "Resolves|Fixes: #<issue number>" line.'
7577

76-
7778
- name: "[Push] Report Commit Standard Status"
7879
if: steps.push_get_commit_message.outcome != 'success' && github.event_name == 'push'
7980
run: |
@@ -83,7 +84,7 @@ jobs:
8384
- name: "[Pull Request] Report Commit Standard Status"
8485
if: steps.pr_get_commit_message.outcome != 'success' && github.event_name == 'pull_request'
8586
run: |
86-
curl -X POST -H 'Content-Type: application/json' --data '{"alias":"Mo-Auto","emoji":":robot:","text":":x: :cry: I am reporting a bad [commit](https://github.com/${{github.repository}}/tree/${{github.head_ref}}) by :thinking_face: @${{github.actor}} :x:","attachments":[{"title":"GitHub user behavior reporter","title_link":"https://www.conventionalcommits.org","text":"We are not too happy with your last commit merging into https://github.com/${{github.repository}}/tree/${{github.base_ref}}. Here is why : ${{ steps.pr_get_commit_message.outputs.errormsg }}","color":"#764FA5"}]}' ${{ secrets.GITHUBUSERBEHAVIORROCKETCHATREPORTER }}
87+
curl -X POST -H 'Content-Type: application/json' --data '{"alias":"Mo-Auto","emoji":":robot:","text":":x: :cry: I am reporting a bad [commit](https://github.com/${{github.repository}}/tree/$GITHUB_HEAD_REF) by :thinking_face: @${{github.actor}} :x:","attachments":[{"title":"GitHub user behavior reporter","title_link":"https://www.conventionalcommits.org","text":"We are not too happy with your last commit merging into https://github.com/${{github.repository}}/tree/${{github.base_ref}}. Here is why : ${{ steps.pr_get_commit_message.outputs.errormsg }}","color":"#764FA5"}]}' ${{ secrets.GITHUBUSERBEHAVIORROCKETCHATREPORTER }}
8788
exit 1
8889
8990
# - name: Check Commit length

0 commit comments

Comments
 (0)