From 3a4a116a7c189434745d8c9153f76d6e9395fbc3 Mon Sep 17 00:00:00 2001 From: Elysia Date: Sat, 31 Jan 2026 10:42:54 +0800 Subject: [PATCH] refactor(ci): replace inline conditionals with if-else in build.yml --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28da0399..d931b9ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,7 +77,12 @@ jobs: npm install - name: Build Release Files - run: ${{ matrix.package == 'deb' && 'npm run build:deb -- --${{ matrix.architecture }}' || matrix.package == 'rpm' && 'npm run build:rpm -- --${{ matrix.architecture }}' }} + run: | + if [ "${{ matrix.package }}" == "deb" ]; then + npm run build:deb -- --${{ matrix.architecture }} + elif [ "${{ matrix.package }}" == "rpm" ]; then + npm run build:rpm -- --${{ matrix.architecture }} + fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}