Skip to content

Commit

Permalink
Use head for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
webbertakken committed May 22, 2020
1 parent 866f364 commit f15f40d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/model/versioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export default class Versioning {
* identifies the current commit.
*/
static async getVersionDescription() {
return this.git(['describe', '--long', '--tags', '--always', '--debug', this.ref]);
const commitIsh = (await this.getTag()) ? 'HEAD' : `origin/${this.branch}`;
return this.git(['describe', '--long', '--tags', '--always', '--debug', commitIsh]);
}

/**
Expand Down

0 comments on commit f15f40d

Please sign in to comment.