diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index b7f7b71b..e2faa2ec 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -7,11 +7,15 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write steps: - - uses: actions/checkout@4 + - uses: actions/checkout@v3 with: - # Fetch the last 2 commits instead of just 1. - fetch-depth: 2 + 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 - name: 'Get tag' id: previoustag uses: "WyriHaximus/github-action-get-previous-tag@v1"