Skip to content

Commit 4b024ed

Browse files
committed
fix: match any ubuntu-* host for protobuf compiler install
The host was changed from ubuntu-latest to ubuntu-22.04, but the condition only matched ubuntu-latest exactly. Now uses glob match to support any ubuntu variant.
1 parent 6076fe2 commit 4b024ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Install protobuf compiler
5050
shell: bash
5151
run: |
52-
if [ "${{ matrix.settings.host }}" = "ubuntu-latest" ]; then
52+
if [[ "${{ matrix.settings.host }}" == ubuntu-* ]]; then
5353
sudo apt-get update && sudo apt-get install -y protobuf-compiler
5454
elif [ "${{ matrix.settings.host }}" = "windows-latest" ]; then
5555
choco install protoc -y

0 commit comments

Comments
 (0)