File tree Expand file tree Collapse file tree 6 files changed +7
-10
lines changed
Expand file tree Collapse file tree 6 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1717 # Force the stdout and stderr streams to be unbuffered
1818 PYTHONUNBUFFERED : 1
1919 DISABLE_CI_MERGE_COMMIT : ${{ vars.DISABLE_CI_MERGE_COMMIT || '0' }}
20- DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache || '0' }}
20+ DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache && '1' || '0' }}
2121 CHECKOUT_REF : ${{ vars.DISABLE_CI_MERGE_COMMIT == '1' && github.event.pull_request.head.sha || '' }}
2222 DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
2323 CLICKHOUSE_TEST_STAT_URL : ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}
Original file line number Diff line number Diff line change 1616env :
1717 # Force the stdout and stderr streams to be unbuffered
1818 PYTHONUNBUFFERED : 1
19- DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache || '0' }}
19+ DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache && '1' || '0' }}
2020 CHECKOUT_REF : " "
2121 DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
2222 CLICKHOUSE_TEST_STAT_URL : ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}
Original file line number Diff line number Diff line change 1717 # Force the stdout and stderr streams to be unbuffered
1818 PYTHONUNBUFFERED : 1
1919 DISABLE_CI_MERGE_COMMIT : ${{ vars.DISABLE_CI_MERGE_COMMIT || '0' }}
20- DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache || '0' }}
20+ DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache && '1' || '0' }}
2121 CHECKOUT_REF : ${{ vars.DISABLE_CI_MERGE_COMMIT == '1' && github.event.pull_request.head.sha || '' }}
2222 DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
2323 CLICKHOUSE_TEST_STAT_URL : ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}
Original file line number Diff line number Diff line change 1616env :
1717 # Force the stdout and stderr streams to be unbuffered
1818 PYTHONUNBUFFERED : 1
19- DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache || '0' }}
19+ DISABLE_CI_CACHE : ${{ github.event.inputs.no_cache && '1' || '0' }}
2020 CHECKOUT_REF : " "
2121 DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
2222 CLICKHOUSE_TEST_STAT_URL : ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}
Original file line number Diff line number Diff line change @@ -360,10 +360,7 @@ def _check_db(workflow):
360360 )
361361 )
362362
363- pr_allows_cache = (
364- "[x] <!---no_ci_cache" not in Info ().pr_body
365- or os .environ .get ("DISABLE_CI_CACHE" , "0" ) not in ("1" , "true" )
366- )
363+ pr_allows_cache = "[x] <!---no_ci_cache" not in Info ().pr_body
367364 if (
368365 workflow .enable_job_filtering_by_changes
369366 and results [- 1 ].is_ok ()
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ class Templates:
6161 """
6262 TEMPLATE_ENV_CHECKOUT_REF_PR = """\
6363 DISABLE_CI_MERGE_COMMIT: ${{{{ vars.DISABLE_CI_MERGE_COMMIT || '0' }}}}
64- DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache || '0' }}}}
64+ DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache && '1' || '0' }}}}
6565 CHECKOUT_REF: ${{{{ vars.DISABLE_CI_MERGE_COMMIT == '1' && github.event.pull_request.head.sha || '' }}}}\
6666 """
6767 TEMPLATE_ENV_CHECKOUT_REF_PUSH = """\
68- DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache || '0' }}}}
68+ DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache && '1' || '0' }}}}
6969 CHECKOUT_REF: ""\
7070 """
7171 TEMPLATE_ENV_CHECKOUT_REF_DEFAULT = """\
You can’t perform that action at this time.
0 commit comments