Skip to content

Commit

Permalink
Fixed runs-on for non-apache repository (apache#14737)
Browse files Browse the repository at this point in the history
The change apache#14718 by mistake left the 'self-hosted" runs-on in case of
push or schedule. This caused failures on non-apache repositories.
  • Loading branch information
potiuk authored Mar 12, 2021
1 parent 1e6398f commit 945a5b9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 945a5b9

Please sign in to comment.