This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 19c4efd33dddd0247210e2d9b0c87dd20dd1493f
Author: yasithdev <[email protected]>
AuthorDate: Tue Jun 10 15:01:56 2025 -0500

    update spotless github action
---
 .github/workflows/style-check.yml                         | 15 ++++++++++++++-
 .../org/apache/airavata/common/utils/ThriftUtils.java     |  3 +--
 pom.xml                                                   |  4 +++-
 3 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/style-check.yml 
b/.github/workflows/style-check.yml
index 35839b363c..1d1300af68 100644
--- a/.github/workflows/style-check.yml
+++ b/.github/workflows/style-check.yml
@@ -19,5 +19,18 @@ jobs:
           java-version: "17"
       - name: Checkout code
         uses: actions/checkout@v4
-      - name: Build with Maven (skip tests)
+      - name: Run Spotless Check
         run: mvn spotless:check
+      - name: Run Spotless Apply if Check Fails
+        if: failure()
+        run: mvn spotless:apply
+      - name: Generate Spotless Patch
+        if: failure()
+        run: |
+          git diff > spotless-fixes.patch
+      - name: Upload Spotless Patch as Artifact
+        if: failure()
+        uses: actions/upload-artifact@v4
+        with:
+          name: spotless-fixes
+          path: spotless-fixes.patch
diff --git 
a/modules/commons/src/main/java/org/apache/airavata/common/utils/ThriftUtils.java
 
b/modules/commons/src/main/java/org/apache/airavata/common/utils/ThriftUtils.java
index 9bf8b21e0b..cc7b099ae5 100644
--- 
a/modules/commons/src/main/java/org/apache/airavata/common/utils/ThriftUtils.java
+++ 
b/modules/commons/src/main/java/org/apache/airavata/common/utils/ThriftUtils.java
@@ -50,8 +50,7 @@ public class ThriftUtils {
                 MonitorTaskModel monitorTaskModel = new MonitorTaskModel();
                 ThriftUtils.createThriftFromBytes(taskModel.getSubTaskModel(), 
monitorTaskModel);
                 return monitorTaskModel;
-            case ENV_CLEANUP:
-            // TODO return Environment Clean up task  model
+            case ENV_CLEANUP: // TODO return Environment Clean up task model
             default:
                 return null;
         }
diff --git a/pom.xml b/pom.xml
index 5a4d82a3cf..91c6001904 100644
--- a/pom.xml
+++ b/pom.xml
@@ -412,7 +412,9 @@ under the License.
                 <version>2.44.5</version>
                 <configuration>
                     <java>
-                        <palantirJavaFormat/>
+                        <palantirJavaFormat>
+                            <version>2.68.0</version>
+                        </palantirJavaFormat>
                         <licenseHeader>
                             <file>apache-license-header-java.txt</file>
                         </licenseHeader>

Reply via email to