From d4540862d0be8332ac2bc3fa5b298bbcb9c1bc7d Mon Sep 17 00:00:00 2001 From: Muhammad Awad Date: Tue, 20 Jun 2023 11:38:01 -0700 Subject: [PATCH] Output some info in example --- .github/workflows/example.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 5b5aace..26a6492 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -12,6 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - name: rocm-setup - uses: neoblizz/rocm-setup@v0.1.1-beta + uses: neoblizz/rocm-setup@v0.1.3-beta with: rocm: '5.5.0' + - name: Check if running inside Docker + run: | + if grep -q "/docker/" /proc/1/cgroup; then + echo "Running inside Docker" + else + echo "Not running inside Docker" + fi + - name: Check if Docker is installed + run: | + if command -v docker &> /dev/null; then + echo "Docker is installed" + docker images + else + echo "Docker is not installed" + fi