diff --git a/.github/workflows/tree.yml b/.github/workflows/tree.yml index 1bb55bf731f97..6a70a1462da4c 100644 --- a/.github/workflows/tree.yml +++ b/.github/workflows/tree.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{github.sha}} + ref: ${{ github.reftype == 'tag' && github.sha || github.ref }} - name: Fix "dubious ownership" issue run: git config --global --add safe.directory /__w/tarantool/tarantool