From 39cc399554a301edbf195ef14e5e86486bbb983a Mon Sep 17 00:00:00 2001 From: Josh Wulf Date: Mon, 13 Jan 2025 15:22:57 +1300 Subject: [PATCH] ci: update kill command to not fail if mono is not running --- .github/workflows/integration-test.yml | 4 ++-- .github/workflows/pr-test.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index b579f817..f1b10da8 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -67,7 +67,7 @@ jobs: # Workaround for https://github.com/actions/runner-images/issues/2821 - name: Remove mono blocking 8084 port - run: sudo kill -s 9 $(sudo lsof -t -i:8084) + run: sudo lsof -t -i:8084 | xargs -r sudo kill -9 - name: Set up Docker run: | @@ -113,7 +113,7 @@ jobs: # Workaround for https://github.com/actions/runner-images/issues/2821 - name: Remove mono blocking 8084 port - run: sudo kill -s 9 $(sudo lsof -t -i:8084) + run: sudo lsof -t -i:8084 | xargs -r sudo kill -9 - name: Set up Docker run: | diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 52ea32b8..787a52d4 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -65,7 +65,7 @@ jobs: # Workaround for https://github.com/actions/runner-images/issues/2821 - name: Remove mono blocking 8084 port - run: sudo kill -s 9 $(sudo lsof -t -i:8084) + run: sudo lsof -t -i:8084 | xargs -r sudo kill -9 - name: Set up Docker run: | @@ -111,7 +111,7 @@ jobs: # Workaround for https://github.com/actions/runner-images/issues/2821 - name: Remove mono blocking 8084 port - run: sudo kill -s 9 $(sudo lsof -t -i:8084) + run: sudo lsof -t -i:8084 | xargs -r sudo kill -9 - name: Set up Docker run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4e39cd80..64601b5a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,7 @@ jobs: # Workaround for https://github.com/actions/runner-images/issues/2821 - name: Remove mono blocking 8084 port - run: sudo kill -s 9 $(sudo lsof -t -i:8084) + run: sudo lsof -t -i:8084 | xargs -r sudo kill -9 - name: Set up Docker run: | @@ -92,7 +92,7 @@ jobs: # Workaround for https://github.com/actions/runner-images/issues/2821 - name: Remove mono blocking 8084 port - run: sudo kill -s 9 $(sudo lsof -t -i:8084) + run: sudo lsof -t -i:8084 | xargs -r sudo kill -9 - name: Set up Docker run: |