diff --git a/.github/workflows/build_ctest.yaml b/.github/workflows/build_ctest.yaml index fb98d131ba6..79418d2ca33 100644 --- a/.github/workflows/build_ctest.yaml +++ b/.github/workflows/build_ctest.yaml @@ -145,11 +145,10 @@ jobs: if: ${{ ! env.SKIP_STEPS && ! matrix.analyse }} shell: bash env: - found_api_key: ${{ matrix.build_config == 'Release' && matrix.publish_benchmark && secrets.BM_API_KEY || '' }} BM_API_KEY: ${{ matrix.build_config == 'Release' && matrix.publish_benchmark && secrets.BM_API_KEY || '' }} BM_BRANCH_NAME: ${{ github.ref }} run: | - echo found_api_key: ${{ env.found_api_key }} + if [ $BM_API_KEY != '' ]; then echo "INFO: Publishing benchmarks"; fi ROOT=$(pwd) echo $ROOT ctest --test-dir ${{ env.TEST_DIR }} -C ${{ matrix.build_config }} -R ${{ matrix.target }} -V