diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 295eb60..d4b936a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Rust uses: actions-rs/toolchain@v1 @@ -44,15 +46,19 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Get previous tag id: previoustag uses: 'WyriHaximus/github-action-get-previous-tag@v1' + with: + fallback: 'v0.1.0' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Debug previous tag - run: echo ${{ steps.previoustag.outputs.tag }} + run: echo "Previous tag: ${{ steps.previoustag.outputs.tag }}" - name: Get next minor version id: semver