This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit d68d58a29cc09ef827a89778b18b1d868e84652d Author: Jarek Potiuk <[email protected]> AuthorDate: Fri Mar 12 02:31:26 2021 +0100 Fixed runs-on for non-apache repository (#14737) The change #14718 by mistake left the 'self-hosted" runs-on in case of push or schedule. This caused failures on non-apache repositories. (cherry picked from commit 945a5b927a232c73c3c6d5cf6568f8f39aa534a5) --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60e8086..c5e115b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,13 +164,11 @@ jobs: - name: Set runs-on id: set-runs-on run: | - echo "::set-output name=runsOn::$(jq -n ' - if env.AIRFLOW_SELF_HOSTED_RUNNER or (["push", "schedule"] | index(env.GITHUB_EVENT_NAME)) then - "self-hosted" - else - "ubuntu-20.04" - end - ')" + if [[ ${AIRFLOW_SELF_HOSTED_RUNNER} != "" ]]; then + echo "::set-output name=runsOn::\"self-hosted\"" + else + echo "::set-output name=runsOn::\"ubuntu-20.04\"" + fi - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v2 with:
