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