This is an automated email from the ASF dual-hosted git repository.
menghaoran 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 a056e69ddbe Refactor dynamic workflow (#33731)
a056e69ddbe is described below
commit a056e69ddbe40f860166f56cbbcf8cc52076af60
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Wed Nov 20 11:55:14 2024 +0800
Refactor dynamic workflow (#33731)
* Add commit id support for dynamic ci
* Add commit id support for dynamic ci
* Refactor : refactor the chckout action for dynamic ci
* Refactor : update the inputs set order
---
.github/workflows/nightly-ci-dynamic.yml | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/nightly-ci-dynamic.yml
b/.github/workflows/nightly-ci-dynamic.yml
index d8ef7974c71..cc5212bbcf5 100644
--- a/.github/workflows/nightly-ci-dynamic.yml
+++ b/.github/workflows/nightly-ci-dynamic.yml
@@ -20,14 +20,18 @@ name: Nightly - CI Dynamic
on:
workflow_dispatch:
inputs:
+ os:
+ description: 'System OS'
+ required: false
+ default: "[ 'ubuntu-latest' ]"
java-version:
description: 'JDK Version'
required: false
default: "[ '21' ]"
- os:
- description: 'System OS'
+ commit-id:
+ description: 'Commit ID'
required: false
- default: "[ 'ubuntu-latest' ]"
+ default: "[ '' ]"
job:
description: 'Job Name'
required: true
@@ -53,11 +57,14 @@ jobs:
matrix:
os: ${{ fromJson(github.event.inputs.os) }}
java-version: ${{ fromJson(github.event.inputs.java-version) }}
+ commit-id: ${{ fromJson(github.event.inputs.commit-id) }}
steps:
- name: Support Long Paths in Windows
if: matrix.os == 'windows-latest'
run: git config --global core.longpaths true
- uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
@@ -69,6 +76,9 @@ jobs:
restore-keys: |
${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-cache-
${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
+ - name: Checkout with Commit ID
+ if: matrix.commit-id != ''
+ run: git checkout ${{ matrix.commit-id }}
- name: Build Project with Maven
run: ./mvnw clean install -B -ntp -T1C
- name: Build Examples with Maven