diff --git a/.github/workflows/repo-to-wiki.yml b/.github/workflows/repo-to-wiki.yml index 8ff9a21..b8f33f7 100644 --- a/.github/workflows/repo-to-wiki.yml +++ b/.github/workflows/repo-to-wiki.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: photodow/wiki-helpers@v1.8 + - uses: photodow/wiki-helpers@1.1.0 with: rootPath: "./samples" flattenDir: true diff --git a/README.md b/README.md index 8ed42fb..ab78a68 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ You can find this script in the [GitHub Action Marketplace](https://github.com/m ```yml - name: Wiki Helpers - uses: photodow/wiki-helpers@v1.8 + uses: photodow/wiki-helpers@1.1.0 ```
@@ -103,7 +103,7 @@ jobs: - uses: actions/checkout@v2 with: repository: ${{github.repository}}.wiki - - uses: photodow/wiki-helpers@v1.8 + - uses: photodow/wiki-helpers@1.1.0 with: rootPath: ./ buildPath: ./ @@ -131,7 +131,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: photodow/wiki-helpers@v1.8 + - uses: photodow/wiki-helpers@1.1.0 with: rootPath: "./samples" flattenDir: true diff --git a/dist/index.js b/dist/index.js index 44a9e3c..d1ec271 100644 --- a/dist/index.js +++ b/dist/index.js @@ -425,7 +425,7 @@ function writeEachFileOnce (filesObj) { fs.mkdirSync(path, { recursive: true }); } } -console.log(typeof globalOptions.flattenDir, globalOptions.flattenDir); + if (globalOptions.flattenDir) { writeTo = Path.join(globalOptions.buildPath, filesObj[key].name); } diff --git a/lib/index.js b/lib/index.js index d9e0ee3..de31279 100644 --- a/lib/index.js +++ b/lib/index.js @@ -419,7 +419,7 @@ function writeEachFileOnce (filesObj) { fs.mkdirSync(path, { recursive: true }); } } -console.log(typeof globalOptions.flattenDir, globalOptions.flattenDir); + if (globalOptions.flattenDir) { writeTo = Path.join(globalOptions.buildPath, filesObj[key].name); } diff --git a/package.json b/package.json index 828962b..f64b941 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backlinks-test", - "version": "v1.8", + "version": "1.1.0", "description": "This action offers a number of helpers to help automate some of the laborious tasks across many files within a wiki. For example generating table of contents or backlinking references.", "main": "./lib/index.js", "scripts": {