ci: checkout whole repository
This commit is contained in:
parent
894abe344c
commit
7f13a0386b
2 changed files with 5 additions and 2 deletions
|
|
@ -10,6 +10,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: 📦 Checkout repository
|
- name: 📦 Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: 🦀 Setup Rust cache
|
- name: 🦀 Setup Rust cache
|
||||||
uses: https://github.com/Swatinem/rust-cache@v2
|
uses: https://github.com/Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: 📦 Checkout repository
|
- name: 📦 Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get variables
|
- name: Get variables
|
||||||
run: |
|
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=$(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"
|
echo "CRATE_VERSION=$(echo '${{ github.ref_name }}' | awk 'BEGIN{RS="/"} NR==2{print}')" >> "$GITHUB_ENV"
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue