From 1bd1161879dce9244967dbff1b5b94403a2abe0e Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Sat, 31 Dec 2022 22:35:07 +0900 Subject: [PATCH] ci: checkout tag when main --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edfc89b..ceef20c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: - uses: ./.github/actions/output-latest-tag id: latest-tag - name: Checkout a latest tag + if: ${{ github.ref == 'refs/heads/main' }} run: git checkout ${{ steps.latest-tag.outputs.latest-tag }} - name: Setup Java & Gradle uses: ./.github/actions/setup