From 9a6be2b413c5de7b6e615c1a3b8e604f8605c018 Mon Sep 17 00:00:00 2001 From: madonuko Date: Mon, 29 Jul 2024 14:16:26 +0800 Subject: [PATCH] fix(ci/bootstrap): checkout properly --- .github/workflows/bootstrap.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 8131ecb675..f2f6802e53 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -15,6 +15,11 @@ jobs: image: docker.io/library/almalinux:${{ matrix.version }} options: --cap-add=SYS_ADMIN --privileged steps: + - uses: actions/checkout@v4 + with: + ref: el${{ matrix.version }} + fetch-depth: 1 + - name: Install repositories run: | dnf install -y 'dnf-command(config-manager)' @@ -26,10 +31,6 @@ jobs: - name: Install Anda run: cargo install anda - - uses: actions/checkout@v4 - with: - ref: f${{ matrix.version }} - fetch-depth: 1 - name: Build terra-mock-configs run: | echo "PATH=$PATH:/github/home/.cargo/bin" >> $GITHUB_ENV