fix: Use GITHUB_REF to retrieve tag before checking the most recent tag (#238)

* fix: Use GITHUB_REF to retrieve tag before checking the most recent tag (#238)

* Update tests

* Check also tags sorted by creatordate for the current GITHUB_SHA

* fix: Check tags length

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2020-08-27 17:28:00 +02:00
committed by GitHub
parent 309312125e
commit 90d3577f6e
4 changed files with 43 additions and 3 deletions
+1
View File
@@ -5,6 +5,7 @@ describe('github', () => {
const release = await github.getRelease('latest');
expect(release).not.toBeNull();
expect(release?.tag_name).not.toEqual('');
console.log(`tag_name: ${release?.tag_name}`);
});
it('returns v0.117.0 GoReleaser GitHub release', async () => {
const release = await github.getRelease('v0.117.0');