From c2e5ba4db3cb66e8b4f459b6a4b34d5a068634bc Mon Sep 17 00:00:00 2001 From: violetc Date: Thu, 15 Sep 2022 07:39:00 +0000 Subject: [PATCH] fetch all history for all branches and tags --- .github/workflows/leaves.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/leaves.yml b/.github/workflows/leaves.yml index 25c929c8..e8157571 100644 --- a/.github/workflows/leaves.yml +++ b/.github/workflows/leaves.yml @@ -17,7 +17,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Get repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@v2 with: @@ -40,7 +43,6 @@ jobs: mv build/libs/Leaves-paperclip-1.19.2-R0.1-SNAPSHOT-reobf.jar leaves-1.19.2.jar echo "name=Leaves-`git rev-parse --short HEAD`" >> $GITHUB_ENV echo "tag=1.19.2-`git rev-parse --short HEAD`" >> $GITHUB_ENV - git fetch --tags sh scripts/GetReleaseInfo.sh - name: Create Release uses: ncipollo/release-action@v1