diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index cc474d85..b7f7b71b 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -8,10 +8,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@4 with: - persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token - fetch-depth: 0 # otherwise, you will failed to push refs to dest repo + # Fetch the last 2 commits instead of just 1. + fetch-depth: 2 - name: 'Get tag' id: previoustag uses: "WyriHaximus/github-action-get-previous-tag@v1"