Skip to content

Commit 6489269

Browse files
committed
🔖 Release v1.16.2 [skip ci]
1 parent eb3a718 commit 6489269

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## [v1.16.2] - 2021-12-22
2+
3+
[Release notes](https://github.com/betahuhn/repo-file-sync-action/releases/tag/v1.16.2) · [Compare](https://github.com/betahuhn/repo-file-sync-action/compare/v1.16.1...v1.16.2) · [Tag](https://github.com/betahuhn/repo-file-sync-action/tree/v1.16.2) · Archive ([zip](https://github.com/betahuhn/repo-file-sync-action/archive/v1.16.2.zip) · [tar.gz](https://github.com/betahuhn/repo-file-sync-action/archive/v1.16.2.tar.gz))
4+
5+
### Bug fixes
6+
7+
- [`eb3a718`](https://github.com/betahuhn/repo-file-sync-action/commit/eb3a718) Add trailing slash to destination directories
8+
9+
### Dependency updates
10+
11+
- [`3863803`](https://github.com/betahuhn/repo-file-sync-action/commit/3863803) Bump @vercel/ncc from 0.33.0 to 0.33.1
12+
- [`54932d2`](https://github.com/betahuhn/repo-file-sync-action/commit/54932d2) Bump action-input-parser from 1.2.24 to 1.2.25
13+
114
## [v1.16.1] - 2021-12-19
215

316
[Release notes](https://github.com/betahuhn/repo-file-sync-action/releases/tag/v1.16.1) · [Compare](https://github.com/betahuhn/repo-file-sync-action/compare/v1.16.0...v1.16.1) · [Tag](https://github.com/betahuhn/repo-file-sync-action/tree/v1.16.1) · Archive ([zip](https://github.com/betahuhn/repo-file-sync-action/archive/v1.16.1.zip) · [tar.gz](https://github.com/betahuhn/repo-file-sync-action/archive/v1.16.1.tar.gz))

dist/index.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -17834,11 +17834,14 @@ const copy = async (src, dest, deleteOrphaned, exclude) => {
1783417834

1783517835
for (const file of destFileList) {
1783617836
if (srcFileList.indexOf(file) === -1) {
17837-
core.debug(`Found a orphaned file in the target repo - ${ dest }${ file }`)
17837+
const filePath = path.join(dest, file)
17838+
core.debug(`Found a orphaned file in the target repo - ${ filePath }`)
17839+
1783817840
if (exclude !== undefined && exclude.includes(path.join(src, file))) {
1783917841
core.debug(`Excluding file ${ file }`)
1784017842
} else {
17841-
await fs.remove(`${ dest }${ file }`)
17843+
core.debug(`Removing file ${ file }`)
17844+
await fs.remove(filePath)
1784217845
}
1784317846
}
1784417847
}
@@ -18105,14 +18108,15 @@ const run = async () => {
1810518108

1810618109
const isDirectory = await pathIsDirectory(file.source)
1810718110
const source = isDirectory ? `${ addTrailingSlash(file.source) }` : file.source
18111+
const dest = isDirectory ? `${ addTrailingSlash(file.dest) }` : file.dest
1810818112

1810918113
if (isDirectory) core.info(`Source is directory`)
1811018114

1811118115
const deleteOrphaned = isDirectory && file.deleteOrphaned
1811218116

18113-
await copy(source, localDestination, deleteOrphaned, file.exclude)
18117+
await copy(source, dest, deleteOrphaned, file.exclude)
1811418118

18115-
await git.add(file.dest)
18119+
await git.add(dest)
1811618120

1811718121
// Commit each file separately, if option is set to false commit all files at once later
1811818122
if (COMMIT_EACH_FILE === true) {

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "repo-file-sync-action",
3-
"version": "1.16.1",
3+
"version": "1.16.2",
44
"description": "GitHub Action to keep files like Action workflows or entire directories in sync between multiple repositories.",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)