diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml
index 8b8852a..d0a0d52 100644
--- a/.github/workflows/build-macos.yml
+++ b/.github/workflows/build-macos.yml
@@ -34,7 +34,7 @@ jobs:
           brew update
           brew upgrade || echo '::warning::"brew upgrade" failed. Please check the log to see if the artifact is valid.'
           brew install qt@5 || echo '::warning::"brew install qt@5" failed. Please check the log to see if the artifact is valid.'
-          brew link qt@5 --force
+          brew link qt5 --force
 
       - name: Create build directory
         run:  mkdir ${{ runner.temp }}/shadow_build_dir