apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.23k stars 3.58k forks source link

[CI] Replace `runs-on: ubuntu-latest` with `runs-on: ubuntu-20.04` in GitHub Action workflows #17560

Closed lhotari closed 2 years ago

lhotari commented 2 years ago

Search before asking

Motivation

The workflows currently contained mixed usage of runs-on: ubuntu-latest and runs-on: ubuntu-20.04. It's better to be consistent and use runs-on: ubuntu-20.04 for all cases. It's better to be able to control when we switch to use ubuntu-22.04 image instead of letting GitHub decide. For macOS, we should replace macos-latest with macos-11 for the similar reason.

Available image definitions are listed at https://github.com/actions/runner-images#available-images

Solution

No response

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

tisonkun commented 2 years ago

Sounds good! I just do the same thing in incubator-kvrocks days before.