Skip to content

Commit f8ca18c

Browse files
committed
wip: try this one
1 parent b16a611 commit f8ca18c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.github/workflows/diff-dependencies.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
with:
15+
fetch-depth: 0
1416
- name: Create Diff
1517
uses: ./

main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24147,12 +24147,10 @@ function getFileFromRef(ref, filePath, cwd2) {
2414724147
function getBaseRef() {
2414824148
const inputBaseRef = core.getInput("base-ref");
2414924149
if (inputBaseRef) {
24150-
core.info("Found input base ref: " + inputBaseRef);
2415124150
return inputBaseRef.includes("/") ? inputBaseRef : `origin/${inputBaseRef}`;
2415224151
}
2415324152
const githubBaseRef = github.context.payload.pull_request?.base.ref;
2415424153
if (githubBaseRef) {
24155-
core.info("Found github base ref: " + githubBaseRef);
2415624154
return `origin/${githubBaseRef}`;
2415724155
}
2415824156
return "origin/main";

src/git.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ export function getBaseRef(): string {
2424
const inputBaseRef = core.getInput('base-ref');
2525

2626
if (inputBaseRef) {
27-
core.info('Found input base ref: ' + inputBaseRef);
2827
return inputBaseRef.includes('/') ? inputBaseRef : `origin/${inputBaseRef}`;
2928
}
3029

3130
const githubBaseRef = github.context.payload.pull_request?.base.ref;
3231

3332
if (githubBaseRef) {
34-
core.info('Found github base ref: ' + githubBaseRef);
3533
return `origin/${githubBaseRef}`;
3634
}
3735

0 commit comments

Comments
 (0)