Skip to content

Commit

Permalink
fix: another try on fixing repo and owner variables
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Sep 22, 2022
1 parent abc6660 commit f90a5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26194,8 +26194,7 @@ var __webpack_exports__ = {}
const botUser = `${appUser.slug}[bot]`
context.botUser = botUser

const owner = process.env.GITHUB_REPOSITORY_OWNER
const repo = process.env.GITHUB_REPOSITORY_NAME
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/')
if (context.eventName === 'workflow_dispatch') {
const users = await query(octokit, owner, repo, core)
for (const user of users) {
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ async function run() {
const botUser = `${appUser.slug}[bot]`
context.botUser = botUser

const owner = process.env.GITHUB_REPOSITORY_OWNER
const repo = process.env.GITHUB_REPOSITORY_NAME
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/')
if (context.eventName === 'workflow_dispatch') {
const users = await query(octokit, owner, repo, core)
for (const user of users) {
Expand Down

0 comments on commit f90a5d8

Please sign in to comment.