Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 30, 2024
1 parent df14a98 commit 35f9e52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28156,16 +28156,13 @@ async function main() {
!(await isGitBranchExists(targetBranch)) &&
!(await hasGitChanged(sourceDir))
) {
core.info(`! Skip "${sourceDir}" directory as unchanged`)
core.info(`Skip "${sourceDir}" directory as unchanged`)
continue
}

core.startGroup(`Sync "${sourceDir}" directory to "${targetBranch}" branch`)
try {
await gitForcePush(sourceDir, targetBranch, dryRun, ghToken)
} finally {
core.endGroup()
}
core.info(`Sync "${sourceDir}" directory to "${targetBranch}" branch`)
await gitForcePush(sourceDir, targetBranch, dryRun, ghToken)
console.log()
}
}

Expand Down
11 changes: 4 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,13 @@ async function main() {
!(await isGitBranchExists(targetBranch)) &&
!(await hasGitChanged(sourceDir))
) {
core.info(`! Skip "${sourceDir}" directory as unchanged`)
core.info(`Skip "${sourceDir}" directory as unchanged`)
continue
}

core.startGroup(`Sync "${sourceDir}" directory to "${targetBranch}" branch`)
try {
await gitForcePush(sourceDir, targetBranch, dryRun, ghToken)
} finally {
core.endGroup()
}
core.info(`Sync "${sourceDir}" directory to "${targetBranch}" branch`)
await gitForcePush(sourceDir, targetBranch, dryRun, ghToken)
console.log()
}
}

Expand Down

0 comments on commit 35f9e52

Please sign in to comment.