From deb857ff1a08df9f5fefb6f318aa5c081441881f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Tue, 10 Mar 2020 19:10:11 +0100 Subject: [PATCH] checkout@v2 and fetch tags --- .github/workflows/comment_bot.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/comment_bot.yml b/.github/workflows/comment_bot.yml index cac7a3ae073f9..4b473287f0436 100644 --- a/.github/workflows/comment_bot.yml +++ b/.github/workflows/comment_bot.yml @@ -30,11 +30,15 @@ jobs: name: Debug runs-on: ubuntu-latest steps: - # shallow clones not suitable to generate version number so use v1 - name: Checkout Arrow - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: path: arrow + # in order to generate version number based on git we need the tags + # fetched but checkout@v2 doesn't do that by default + - name: Featch Arrow tags + working-directory: arrow + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # because libgit2 is a dependency of crossbow so prefer conda - name: Setup Conda uses: s-weigand/setup-conda@v1