From 53ab7c3225982750fc19a9d16186f50ecf41cbf7 Mon Sep 17 00:00:00 2001 From: Johnny Huynh <27847622+johnnyhuy@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:03:37 +1100 Subject: [PATCH] ci: Improve workflow performance and efficiency - Update workflow file to fetch tags with fetch depth option - Include commands to fetch tags and checkout GitHub reference in the workflow file --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d2c5718..84f95e4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,7 +35,9 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-tags: true + fetch-depth: 1 + - run: git fetch --tags origin + - run: git checkout ${{ github.ref }} - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 - run: make publish-image