From 4b7fda349ff900366a225683f23a43a76cb48d68 Mon Sep 17 00:00:00 2001 From: agracio Date: Mon, 28 Oct 2024 14:09:45 +0000 Subject: [PATCH] updating workflows --- .github/workflows/build-all.yml | 45 +-------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index d162c23..478d390 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -27,52 +27,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - # - name: Resolve Electron version from major - # id: electron-test-version - # shell: bash - # run: | - # if [[ ${{ matrix.electron }} == '29' ]]; then - # echo "test-version=29.4.6" >> $GITHUB_OUTPUT - # elif [[ ${{ matrix.electron }} == '30' ]]; then - # echo "test-version=30.5.1" >> $GITHUB_OUTPUT - # elif [[ ${{ matrix.electron }} == '31' ]]; then - # echo "test-version=31.7.2" >> $GITHUB_OUTPUT - # elif [[ ${{ matrix.electron }} == '32' ]]; then - # echo "test-version=32.2.2" >> $GITHUB_OUTPUT - # elif [[ ${{ matrix.electron }} == '33' ]]; then - # echo "test-version=33.0.2" >> $GITHUB_OUTPUT - # fi - - name: Resolve Electron versions from major - uses: actions/github-script@v7 id: electron-test-versions - with: - result-encoding: string - script: | - try { - let versions = []; - if('${{ matrix.electron }}' == '29'){ - versions.push({'electron':'29.4.6'}); - } - if('${{ matrix.electron }}' == '30'){ - versions.push({'electron':'30.5.1'}); - } - if('${{ matrix.electron }}' == '31'){ - versions.push({'electron':'31.7.2'}); - } - if('${{ matrix.electron }}' == '32'){ - versions.push({'electron':'32.2.2'}); - } - if('${{ matrix.electron }}' == '33'){ - versions.push({'electron':'33.0.2'}); - } - let testVersions = `{'include': ${versions}}`; - console.log(JSON.stringify(testVersions)) - core.exportVariable('test-versions', JSON.stringify(testVersions)); - } catch(err) { - core.error("Error while resolving Electron versions") - core.setFailed(err) - } + run: echo "test-versions={'include':[{'electron':'29.4.6'},{'electron':'30.5.1'},{'electron':'31.7.2'},{'electron':'32.2.2'},{'electron':'33.0.2'}]}" >> $GITHUB_OUTPUT # - name: Setup env # uses: ./.github/actions/setup-env