Update actions/checkout in GitHub Actions (#1482)
authorscribam <scribam@users.noreply.github.com>
Thu, 19 Jan 2023 07:11:46 +0000 (08:11 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2023 07:11:46 +0000 (08:11 +0100)
.github/workflows/ci-macos.yml
.github/workflows/ci-ubuntu.yml
.github/workflows/ci-windows.yml
.github/workflows/set-version-tag.yml
.github/workflows/update-header-pr.yml

index 341e7a5..54712c4 100644 (file)
@@ -15,15 +15,14 @@ jobs:
         cxx_standard: [11, 14, 17, 20]
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
 
     - name: Install libraries
       run: |
         brew install clang-format molten-vk
 
-    - name: Update Submodules
-      run: git submodule update --init --recursive
-
     - name: Install Ninja
       uses: ashutoshvarma/setup-ninja@master
       with:
index 3696392..a165572 100644 (file)
@@ -22,14 +22,13 @@ jobs:
         cxx_standard: [11, 14, 17, 20]
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
     
     - name: Install libraries
       run: sudo apt update && sudo apt install libgl-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev
 
-    - name: Update Submodules
-      run: git submodule update --init --recursive
-
     - name: Install Ninja
       uses: ashutoshvarma/setup-ninja@master
       with:
index 3470bf2..27537d3 100644 (file)
@@ -16,10 +16,9 @@ jobs:
         build_type: [Debug, Release]
         cxx_standard: [11, 14, 17, 20]
     steps:
-    - uses: actions/checkout@v2
-    
-    - name: Update Submodules
-      run: git submodule update --init --recursive
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
 
     - name: Setup MSVC
       uses: TheMrMilchmann/setup-msvc-dev@v1
index 270fcf1..82d4013 100644 (file)
@@ -9,11 +9,12 @@ jobs:
     runs-on: ubuntu-latest
     
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
     
     - name: Update Submodules
       run: |
-        git submodule update --init --recursive
         cd Vulkan-Headers
         VK_HEADER_GIT_TAG=$(git tag --points-at HEAD | head -n1)
         git checkout $VK_HEADER_GIT_TAG
index 741c60c..55bf6ca 100644 (file)
@@ -15,14 +15,15 @@ jobs:
         cxx_standard: [11]
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
     
     - name: Install libraries
       run: sudo apt install clang-format-15
 
     - name: Update Submodules
       run: |
-        git submodule update --init --recursive
         cd Vulkan-Headers
         VK_HEADER_GIT_TAG=$(git describe --always --tags $(git rev-list --tags) | grep 'v[0-9]\.' | head -n1)
         echo "New revision of Vulkan-Headers: $VK_HEADER_GIT_TAG"