diff --git a/.github/workflows/update-current-version.yml b/.github/workflows/update-current-version.yml index 42ed15db..7f1680d8 100644 --- a/.github/workflows/update-current-version.yml +++ b/.github/workflows/update-current-version.yml @@ -15,8 +15,9 @@ jobs: - uses: actions/checkout@v4 - name: Update README.md + - run: git fetch --prune --unshallow + run: | - git fetch --prune --unshallow latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) sed "s||$latest_tag|g" readme.md > tmp.md && mv tmp.md readme.md git config --local user.email "action@github.com"