AdaCore / ada_language_server

Server implementing the Microsoft Language Protocol for Ada and SPARK
GNU General Public License v3.0
229 stars 54 forks source link

Refetch tags from origin to fix CHANGELOG.md generation #962

Closed reznikmm closed 2 years ago

reznikmm commented 2 years ago

Since 23.0.4 CHANGELOG.md isn't generated correctly, it misses the last tag entry. The investigation shows that GitHub Action checkout SHA for the tag, but not the tag annotation.

For instance:

git rev-parse refs/tags/23.0.5
05ea548d65e6607e4fbb0facb0aee94be1f702ee

git fetch --no-tags origin +de660fc7f50123e22a82b9363e095accd834c6c9:refs/tags/23.0.5

git rev-parse refs/tags/23.0.5
de660fc7f50123e22a82b9363e095accd834c6c9

So de660fc replaces 05ea548d in tag 23.0.5.

We drop the tag and fetch all tags from the origin again.