diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml deleted file mode 100644 index 6932843965..0000000000 --- a/.github/actions/checkout/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Checkout -description: Get tags and submodules for the Multipass repository - -runs: - using: composite - steps: - - name: Check out submodules - shell: bash - run: | - git submodule sync - # This repository can't do depth. - git -c protocol.version=2 submodule update --init 3rd-party/xz-decoder/xz-embedded - git -c protocol.version=2 submodule update --init --force --depth=1 --recursive - - - name: Fetch tags - shell: bash - run: | - git fetch --recurse-submodules origin +refs/tags/*:refs/tags/* diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6c9166259a..fa18746010 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -101,11 +101,8 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - # Need to fetch it all for submodules to work. - fetch-depth: 0 - - - name: Check out tags and submodules - uses: ./.github/actions/checkout + submodules: 'recursive' + fetch-tags: 'true' - name: Determine build parameters id: build-params