diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 03c558f..0a658b3 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -10,6 +10,9 @@ jobs: steps: - name: 📦 Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: 🦀 Setup Rust cache uses: https://github.com/Swatinem/rust-cache@v2 with: diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 33dd17f..f43c70d 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -10,11 +10,11 @@ jobs: steps: - name: 📦 Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Get variables run: | - git fetch --tags --force #the checkout action does not load the tag message - echo "CRATE=$(echo '${{ github.ref_name }}' | awk 'BEGIN{RS="/"} NR==1{print}')" >> "$GITHUB_ENV" echo "CRATE_VERSION=$(echo '${{ github.ref_name }}' | awk 'BEGIN{RS="/"} NR==2{print}')" >> "$GITHUB_ENV" {