ci: checkout whole repository

This commit is contained in:
ThetaDev 2024-04-12 00:34:42 +02:00
parent 328177a9f5
commit 8dc710a32e
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
2 changed files with 5 additions and 2 deletions

View file

@ -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:

View file

@ -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"
{