فهرست منبع

fix(action): update variant matrix handling for improved flexibility in workflows

Co-authored-by: Copilot <copilot@github.com>
TheWildJames 4 ماه پیش
والد
کامیت
8c9d35355f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      .github/workflows/build.yml

+ 1 - 1
.github/workflows/build.yml

@@ -34,7 +34,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        variant: ${{ (inputs.variant == 'All' && 'Normal,Bypass,Wild' || inputs.variant) .split(',') }}
+        variant: ${{ inputs.variant == 'All' && fromJson('["Normal","Bypass","Wild"]') || fromJson(format('["{0}"]', inputs.variant)) }}
     runs-on: ubuntu-latest
     timeout-minutes: 60