ci: checkout whole repository
This commit is contained in:
parent
328177a9f5
commit
8dc710a32e
2 changed files with 5 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue