Skip to content

Commit

Permalink
fix(api): get git tag information from correct json location
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj authored and jkuri committed Sep 18, 2018
1 parent 59de2f1 commit 81e80ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/env-variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export function generate(data: any): EnvVariables {
request.data.pullrequest.source.branch.name ||
request.data.object_attributes && request.data.object_attributes.source_branch ||
request.data.pull_request && request.data.pull_request.head_branch : '';
let tag = request.ref && request.ref.startsWith('refs/tags/') ?
request.ref.replace('refs/tags/', '') : null;
let tag = request.data.ref && request.data.ref.startsWith('refs/tags/') ?
request.data.ref.replace('refs/tags/', '') : null;

set(envs, 'ABSTRUSE_BRANCH', request.branch);
set(envs, 'ABSTRUSE_BUILD_ID', data.build_id);
Expand Down

0 comments on commit 81e80ac

Please sign in to comment.