Action updated from v3 to v4

I believe v3 will be deprecated soon, so it's probably a good idea to
update to v4 as long as this doesn't break anything.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 5036f0d..1e29fe1 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -31,7 +31,7 @@
       options: --user 1001
     steps:
     - name: Checkout repository and submodules
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
       with:
         submodules: recursive
     - name: Build tests
@@ -80,7 +80,7 @@
       options: --user 1001
     steps:
     - name: Checkout repository and submodules
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
       with:
         submodules: recursive
     - name: Run clang-format and clang-tidy