Skip to content

Commit

Permalink
refactor: remove unshallow
Browse files Browse the repository at this point in the history
remove unshallow to see if tests pass
  • Loading branch information
tony84727 committed Aug 3, 2024
1 parent cd1be81 commit 07a1f92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from '@actions/core'
import {Rule, parseRules} from './rule'
import {getChangedFiles, revParse, unshallow} from './git'
import {getChangedFiles, revParse} from './git'
import {newGlobber} from './glob'
function evaluateRule(rule: Rule, changedFiles: string[]): string[] {
const globber = newGlobber(rule.match)
Expand All @@ -25,7 +25,6 @@ async function getHeadSha(): Promise<string> {
async function run(): Promise<void> {
try {
const event = core.getInput('event')
await unshallow()
const baseSha = await getBaseSha(event)
const headSha = await getHeadSha()
core.debug(`baseSha: ${baseSha}`)
Expand Down

0 comments on commit 07a1f92

Please sign in to comment.