diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afb6a887..0a28bc8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,9 +90,13 @@ jobs: - 3306:3306 steps: - - uses: actions/checkout@v3 - with: - submodules: recursive + - name: "Checkout ${{ github.repository }}" + run: | + git init + git remote add origin https://github.com/${{ github.repository }}.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD + git submodule update --init --recursive # # setup @@ -317,9 +321,13 @@ jobs: PATH: "/opt/python/cp311-cp311/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/github/home/.cargo/bin:/opt/mssql-tools/bin" steps: - - uses: actions/checkout@v3 - with: - submodules: recursive + - name: "Checkout ${{ github.repository }}" + run: | + git init + git remote add origin https://github.com/${{ github.repository }}.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD + git submodule update --init --recursive # # setup @@ -604,7 +612,13 @@ jobs: command -v kart kart --version - - uses: actions/checkout@v3 + - name: "Checkout ${{ github.repository }}" + shell: bash + run: | + git init + git remote add origin https://github.com/${{ github.repository }}.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD - name: e2e test (no helper) env: @@ -643,9 +657,13 @@ jobs: PY_VER_ID: "cp311-cp311" steps: - - uses: actions/checkout@v3 - with: - submodules: recursive + - name: "Checkout ${{ github.repository }}" + run: | + git init + git remote add origin https://github.com/${{ github.repository }}.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD + git submodule update --init --recursive # # setup @@ -780,9 +798,13 @@ jobs: PY_VER_INSTALLER: "https://www.python.org/ftp/python/3.11.6/python-3.11.6-macos11.pkg" steps: - - uses: actions/checkout@v3 - with: - submodules: recursive + - name: "Checkout ${{ github.repository }}" + run: | + git init + git remote add origin https://github.com/${{ github.repository }}.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD + git submodule update --init --recursive # # setup @@ -1038,9 +1060,13 @@ jobs: ) steps: - - uses: actions/checkout@v3 - with: - submodules: recursive + - name: "Checkout ${{ github.repository }}" + run: | + git init + git remote add origin https://github.com/${{ github.repository }}.git + git fetch --depth 1 origin ${GITHUB_SHA} + git checkout FETCH_HEAD + git submodule update --init --recursive # Setup