Skip to content

Commit

Permalink
Merge pull request #24 from AppMonet/js
Browse files Browse the repository at this point in the history
Use more accurate Github env variable for the owner of the repo
  • Loading branch information
remorses authored Jul 7, 2023
2 parents 820f029 + bb14359 commit 8e2bc08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/createTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function createTag({ tagName, tagMsg = '' }) {
console.log(`creating tag "${tagName}"`);
// Check for existing tag
const git = new github.GitHub(process.env.GITHUB_TOKEN);
const owner = process.env.GITHUB_ACTOR;
const owner = process.env.GITHUB_REPOSITORY_OWNER;
const repo = (_a = process.env.GITHUB_REPOSITORY) === null || _a === void 0 ? void 0 : _a.split('/').pop();
const tags = yield git.repos.listTags({
owner,
Expand Down
2 changes: 1 addition & 1 deletion src/createTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function createTag({ tagName, tagMsg = '' }) {
console.log(`creating tag "${tagName}"`)
// Check for existing tag
const git = new github.GitHub(process.env.GITHUB_TOKEN)
const owner = process.env.GITHUB_ACTOR as string
const owner = process.env.GITHUB_REPOSITORY_OWNER as string
const repo = process.env.GITHUB_REPOSITORY?.split('/').pop() as string

const tags = await git.repos.listTags({
Expand Down

0 comments on commit 8e2bc08

Please sign in to comment.