You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/06/12 10:10:37 UTC

(opendal) branch main updated: ci: Use expression syntax to avoid VS Code warnings. (#6284)

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

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new b3bc66b7d ci: Use expression syntax to avoid VS Code warnings. (#6284)
b3bc66b7d is described below

commit b3bc66b7d03096ce903addfc2f6defe08830ced7
Author: Kingsword <ki...@gmail.com>
AuthorDate: Thu Jun 12 18:10:30 2025 +0800

    ci: Use expression syntax to avoid VS Code warnings. (#6284)
---
 .github/workflows/ci_bindings_haskell.yml |  5 ++---
 .github/workflows/ci_bindings_nodejs.yml  | 10 +++++-----
 .github/workflows/release_java.yml        |  4 ++--
 3 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/ci_bindings_haskell.yml b/.github/workflows/ci_bindings_haskell.yml
index 8cf9f6ab7..d92626c2a 100644
--- a/.github/workflows/ci_bindings_haskell.yml
+++ b/.github/workflows/ci_bindings_haskell.yml
@@ -22,7 +22,7 @@ on:
     branches:
       - main
     tags:
-      - '*'
+      - "*"
   pull_request:
     branches:
       - main
@@ -78,7 +78,7 @@ jobs:
 
   package:
     runs-on: ubuntu-latest
-    if: "startsWith(github.ref, 'refs/tags/')"
+    if: ${{ startsWith(github.ref, 'refs/tags/') }}
     steps:
       - uses: actions/checkout@v4
       - name: Setup Haskell toolchain (ghc-9.2.8)
@@ -109,7 +109,6 @@ jobs:
         with:
           name: bindings-haskell-sdist
           path: bindings/haskell/target/package/dist-newstyle/sdist/*.tar.gz
-
 # Disable haskell release until we are ready.
 #
 #  release:
diff --git a/.github/workflows/ci_bindings_nodejs.yml b/.github/workflows/ci_bindings_nodejs.yml
index 2709f8cf7..f53b52988 100644
--- a/.github/workflows/ci_bindings_nodejs.yml
+++ b/.github/workflows/ci_bindings_nodejs.yml
@@ -89,7 +89,7 @@ jobs:
   linux:
     name: linux - ${{ matrix.settings.target }}
     runs-on: ubuntu-latest
-    if: "startsWith(github.ref, 'refs/tags/')"
+    if: ${{ startsWith(github.ref, 'refs/tags/') }}
     # Notes: this defaults only apply on run tasks.
     defaults:
       run:
@@ -170,7 +170,7 @@ jobs:
   windows:
     name: windows - ${{ matrix.settings.target }}
     runs-on: windows-latest
-    if: "startsWith(github.ref, 'refs/tags/')"
+    if: ${{ startsWith(github.ref, 'refs/tags/') }}
 
     # Windows built failed with services-all
     # Wait for https://github.com/apache/opendal/issues/4761
@@ -218,7 +218,7 @@ jobs:
   macos:
     name: macos - ${{ matrix.settings.target }}
     runs-on: macos-latest
-    if: "startsWith(github.ref, 'refs/tags/')"
+    if: ${{ startsWith(github.ref, 'refs/tags/') }}
     # Notes: this defaults only apply on run tasks.
     defaults:
       run:
@@ -317,14 +317,14 @@ jobs:
         run: cp LICENSE NOTICE ./bindings/nodejs
 
       - name: Publish Dry Run
-        if: "startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-')"
+        if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') }}
         # Since this command will not exit with non-zero code when file missing,
         # we need to check the output manually.
         run: |
           npm publish --access public --provenance --dry-run
 
       - name: Publish
-        if: "startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')"
+        if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
         run: |
           echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
           npm publish --access public --provenance
diff --git a/.github/workflows/release_java.yml b/.github/workflows/release_java.yml
index 98ac069c6..9b2a1c692 100644
--- a/.github/workflows/release_java.yml
+++ b/.github/workflows/release_java.yml
@@ -73,11 +73,11 @@ jobs:
           repo-token: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Setup linux for zigbuild
-        if: "contains(matrix.os, 'ubuntu-latest')"
+        if: ${{ contains(matrix.os, 'ubuntu-latest') }}
         run: pip install cargo-zigbuild
 
       - name: Setup linux-aarch_64
-        if: "contains(matrix.classifier, 'linux-aarch_64')"
+        if: ${{ contains(matrix.classifier, 'linux-aarch_64') }}
         run: |
           sudo apt-get update
           sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu