Skip to content

Commit

Permalink
fix: 🐛 populate repo when undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
meisZWFLZ authored Feb 3, 2024
1 parent 12c2ff5 commit edb8d47
Show file tree
Hide file tree
Showing 2 changed files with 257 additions and 2 deletions.
256 changes: 255 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import { DepotRouteMap, RepositoryIdentifier } from './types'
import { updateDepots } from './update'

const repoInputRegex = /[^\/\n\s\t]+\/[^\/\n\s\t]+/

function getRepositoryIdentifier(): RepositoryIdentifier {
const repo: { owner: string; repo: string } = { owner: '', repo: '' }
const repo: { owner: string; repo: string } = github.context.repo
const repoInput = core.getInput('repo')

core.info('Repository input: ' + repoInput)
Expand Down

0 comments on commit edb8d47

Please sign in to comment.