Compare commits

..

112 commits
v1.0.1 ... main

Author SHA1 Message Date
Tim Heuer
604a8926a8
Merge pull request #57 from chenrui333/fix-workflow-to-match-with-default-branch
[skip ci]
2023-11-09 08:33:35 -08:00
Rui Chen
2f0d58e350
fix: update branch trigger to match with default branch change
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-11-09 08:43:32 -05:00
Tim Heuer
784a1a4a99
[skip ci] Merge pull request #56 from timheuer/all-contributors/add-chenrui333
docs: add chenrui333 as a contributor for code
2023-11-08 10:58:24 -08:00
Tim Heuer
adaa40c0c5 Modified version 2023-11-08 11:56:07 -07:00
Tim Heuer
940b03f02a Merge branch 'chenrui333-node-20' 2023-11-08 11:50:16 -07:00
allcontributors[bot]
ce53155905
docs: update .all-contributorsrc [skip ci] 2023-11-08 18:27:05 +00:00
allcontributors[bot]
f07c3a9557
docs: update README.md [skip ci] 2023-11-08 18:27:04 +00:00
Rui Chen
d0e10fce50
feat: use node20 and upgrade ncc
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-11-08 12:25:23 -05:00
Tim Heuer
ca9e30baf8 Modifying version and error message 2023-05-17 09:45:07 -07:00
Tim Heuer
f50b750e3c Merge branch 'ninovanhooff-ninovanhooff-patch-1' 2023-05-17 09:40:23 -07:00
Nino van Hooff
291f322050
make input error more descriptive 2023-05-17 18:01:28 +02:00
Tim Heuer
64eeb40ad3
Merge pull request #52 from timheuer/all-contributors/add-CodemenschenAndroid 2022-12-20 16:19:23 -08:00
Tim Heuer
d07824eea8
Merge branch 'main' into all-contributors/add-CodemenschenAndroid 2022-12-20 16:19:16 -08:00
Tim Heuer
1475780677
Adding note about secrets for reusable [skip ci] 2022-12-20 16:17:51 -08:00
Tim Heuer
ef24992625
Merge pull request #51 from timheuer/all-contributors/add-awesomund
docs: add awesomund as a contributor for bug
2022-12-20 05:33:55 -08:00
allcontributors[bot]
66bd53590f
docs: update .all-contributorsrc [skip ci] 2022-12-20 13:33:32 +00:00
allcontributors[bot]
e0b777b218
docs: update README.md [skip ci] 2022-12-20 13:33:31 +00:00
allcontributors[bot]
2b78fe4083
docs: update .all-contributorsrc [skip ci] 2022-12-20 13:32:03 +00:00
allcontributors[bot]
49a75d95a9
docs: update README.md [skip ci] 2022-12-20 13:32:02 +00:00
Tim Heuer
44214ac438 Modifying test workflow [skip ci] 2022-12-15 09:27:49 -08:00
Tim Heuer
5e53f8a429 Adding devcontainer [skip ci] 2022-11-16 15:41:42 -07:00
Tim Heuer
0e3c721e2a
Merge pull request #45 from timheuer/all-contributors/add-Blarkdackbyte
docs: add Blarkdackbyte as a contributor for code [skip ci]
2022-11-16 08:36:03 -07:00
allcontributors[bot]
d5f02c8bfe
docs: update .all-contributorsrc [skip ci] 2022-11-16 15:35:44 +00:00
allcontributors[bot]
0d79db8563
docs: update README.md [skip ci] 2022-11-16 15:35:43 +00:00
Tim Heuer
48657ba25c Version bump and build 2022-11-16 08:33:35 -07:00
Tim Heuer
eb76074a5e Merge branch 'Blarkdackbyte-patch-1' 2022-11-16 08:31:14 -07:00
Basti
047beb5579
replace console.log with core.debug 2022-11-16 15:39:51 +01:00
Tim Heuer
7a19b8252f
Merge pull request #43 from timheuer/all-contributors/add-Blarkdackbyte
docs: add Blarkdackbyte as a contributor for bug [skip ci]
2022-11-12 16:36:54 -07:00
allcontributors[bot]
07b7f6e15e
docs: update .all-contributorsrc [skip ci] 2022-11-12 23:36:24 +00:00
allcontributors[bot]
37d190d14a
docs: update README.md [skip ci] 2022-11-12 23:36:23 +00:00
Tim Heuer
c4a5032944
Merge pull request #41 from timheuer/all-contributors/add-RobbieFrodsham
[skip ci]
2022-11-02 11:03:51 -07:00
allcontributors[bot]
5c5d0a6e27
docs: update .all-contributorsrc [skip ci] 2022-11-02 18:03:34 +00:00
allcontributors[bot]
5aa440ab5b
docs: update README.md [skip ci] 2022-11-02 18:03:33 +00:00
Tim Heuer
c2311f1b61 Fix #40 updating to latest core package 2022-11-02 10:45:32 -07:00
Tim Heuer
378f695371
Update test-matrix.yml
[skip ci]
2022-11-02 10:40:01 -07:00
Tim Heuer
80909a7d0c
Update test-matrix.yml
[skip ci]
2022-11-02 10:38:47 -07:00
Tim Heuer
77994fcb6d
Merge pull request #39 from timheuer/all-contributors/add-danielz-nenda [skip ci] 2022-10-11 08:09:52 -07:00
allcontributors[bot]
f67122ca80
docs: update .all-contributorsrc [skip ci] 2022-10-11 15:09:30 +00:00
allcontributors[bot]
6607cb88f7
docs: update README.md [skip ci] 2022-10-11 15:09:29 +00:00
Tim Heuer
e624ff48e8 Update readme [skip ci] 2022-10-11 08:02:01 -07:00
Tim Heuer
f62ba1262a Bump to node16 fixes #32 2022-10-11 07:56:42 -07:00
Tim Heuer
7f0112efd9
Merge pull request #33 from timheuer/dependabot/npm_and_yarn/ini-1.3.8 2022-10-11 07:52:01 -07:00
dependabot[bot]
dc92ef2882
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/npm/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/npm/ini/releases)
- [Changelog](https://github.com/npm/ini/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/ini/compare/v1.3.5...v1.3.8)

---
updated-dependencies:
- dependency-name: ini
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 14:51:46 +00:00
Tim Heuer
bddd02bc11
Merge pull request #35 from timheuer/dependabot/npm_and_yarn/ansi-regex-and-ansi-regex-4.1.1 2022-10-11 07:51:34 -07:00
Tim Heuer
24bbf87a16
Merge pull request #34 from timheuer/dependabot/npm_and_yarn/tar-4.4.19 2022-10-11 07:50:56 -07:00
Tim Heuer
3001995831
Merge pull request #30 from timheuer/dependabot/npm_and_yarn/ajv-6.12.6 2022-10-11 07:50:45 -07:00
Tim Heuer
97cc54aeec
Merge pull request #36 from timheuer/dependabot/npm_and_yarn/minimist-and-minimist-and-mkdirp-1.2.7 2022-10-11 07:50:14 -07:00
dependabot[bot]
78a6ac9855
Bump minimist, minimist and mkdirp
Bumps [minimist](https://github.com/minimistjs/minimist), [minimist](https://github.com/minimistjs/minimist) and [mkdirp](https://github.com/isaacs/node-mkdirp). These dependencies needed to be updated together.

Updates `minimist` from 1.2.0 to 1.2.7
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.0...v1.2.7)

Updates `minimist` from 1.2.5 to 1.2.7
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.0...v1.2.7)

Updates `mkdirp` from 0.5.1 to 0.5.6
- [Release notes](https://github.com/isaacs/node-mkdirp/releases)
- [Changelog](https://github.com/isaacs/node-mkdirp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-mkdirp/compare/0.5.1...v0.5.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
- dependency-name: minimist
  dependency-type: indirect
- dependency-name: mkdirp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 14:49:46 +00:00
dependabot[bot]
5bd9e57466
Bump ansi-regex and ansi-regex
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) and [ansi-regex](https://github.com/chalk/ansi-regex). These dependencies needed to be updated together.

Updates `ansi-regex` from 3.0.0 to 4.1.1
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v4.1.1)

Updates `ansi-regex` from 4.1.0 to 4.1.1
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 14:49:13 +00:00
dependabot[bot]
301f8c5221
Bump tar from 4.4.8 to 4.4.19
Bumps [tar](https://github.com/npm/node-tar) from 4.4.8 to 4.4.19.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.8...v4.4.19)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 14:48:11 +00:00
Tim Heuer
af402b5724
Merge pull request #31 from timheuer/dependabot/npm_and_yarn/actions/core-1.9.1 2022-10-11 07:47:34 -07:00
dependabot[bot]
e288d25876
Bump @actions/core from 1.2.6 to 1.9.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:19:13 +00:00
dependabot[bot]
7e2c96f2ea
Bump ajv from 6.10.2 to 6.12.6
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-12 20:38:57 +00:00
Tim Heuer
2d34558844
Merge pull request #27 from timheuer/dependabot/npm_and_yarn/tmpl-1.0.5 [skip ci] 2021-11-29 09:28:35 -08:00
Tim Heuer
a9f59e9007
Merge pull request #29 from timheuer/all-contributors/add-Ontokrat [skip ci] 2021-11-29 09:27:47 -08:00
allcontributors[bot]
34ba5566b6
docs: update .all-contributorsrc [skip ci] 2021-11-29 17:27:30 +00:00
allcontributors[bot]
f7072bc0fb
docs: update README.md [skip ci] 2021-11-29 17:27:29 +00:00
Tim Heuer
8681243550
Merge pull request #28 from Ontokrat/patch-1 [skip ci] 2021-11-29 09:27:04 -08:00
GG
594158dd47
Update Readme code example to reflect v1.1
- version number
- example for `fileDir`
linked to https://github.com/timheuer/base64-to-file/issues/15#issuecomment-910500781
2021-11-24 13:48:31 +01:00
dependabot[bot]
7f3c211b18
Bump tmpl from 1.0.4 to 1.0.5
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-21 15:48:56 +00:00
Tim Heuer
622f962cfd
[skip ci] Merge pull request #25 from timheuer/v1.1.0 2021-09-01 10:31:24 -07:00
Tim Heuer
3ff91d2f2d Updating documentation 2021-09-01 10:27:41 -07:00
Tim Heuer
83c4b967d8 Merge branch 'tubone24-output_dir' into v1.1.0 2021-09-01 10:23:06 -07:00
Tim Heuer
4945e9e8aa Merge branch 'output_dir' of https://github.com/tubone24/base64-to-file into tubone24-output_dir 2021-09-01 10:22:41 -07:00
Tim Heuer
745dc3b201
[skip ci] Merge pull request #24 from timheuer/all-contributors/add-tubone24
docs: add tubone24 as a contributor for code
2021-09-01 10:18:16 -07:00
Tim Heuer
27bb93104e
[skip ci] Merge pull request #23 from timheuer/dependabot/npm_and_yarn/ws-5.2.3
Bump ws from 5.2.2 to 5.2.3
2021-09-01 10:17:57 -07:00
allcontributors[bot]
e63de05973
docs: update .all-contributorsrc [skip ci] 2021-09-01 17:17:45 +00:00
allcontributors[bot]
7f50a59522
docs: update README.md [skip ci] 2021-09-01 17:17:44 +00:00
dependabot[bot]
adc77ccbac
Bump ws from 5.2.2 to 5.2.3
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-01 17:16:34 +00:00
Tim Heuer
7774b54607
[skip ci] Merge pull request #16 from timheuer/dependabot/npm_and_yarn/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1
2021-09-01 10:16:27 -07:00
Tim Heuer
27d72d1f9e
[skip ci] Merge pull request #17 from timheuer/dependabot/npm_and_yarn/handlebars-4.7.7
Bump handlebars from 4.7.6 to 4.7.7
2021-09-01 10:16:13 -07:00
Tim Heuer
2a502b9c17
[skip ci] Merge pull request #18 from timheuer/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.19 to 4.17.21
2021-09-01 10:15:59 -07:00
Tim Heuer
712b1de0b8
[skip ci] Merge pull request #19 from timheuer/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.4 to 2.8.9
2021-09-01 10:15:42 -07:00
Tim Heuer
618837e4f3
[skip ci] Merge pull request #20 from timheuer/dependabot/npm_and_yarn/glob-parent-5.1.2
Bump glob-parent from 5.0.0 to 5.1.2
2021-09-01 10:15:26 -07:00
Tim Heuer
33b6378b5e
[skip ci] Merge pull request #21 from timheuer/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-09-01 10:14:57 -07:00
tubone24
82f25e4519 remove console.log 2021-08-30 23:19:43 +09:00
tubone24
8a213e6923 change the output location to specific one from temp location. 2021-08-30 23:19:09 +09:00
dependabot[bot]
e8eccda7a2
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 19:26:59 +00:00
dependabot[bot]
5913a3bcef
Bump glob-parent from 5.0.0 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.0.0 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 20:24:05 +00:00
dependabot[bot]
312ab6eb8f
Bump hosted-git-info from 2.8.4 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.4 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.4...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 09:18:25 +00:00
dependabot[bot]
2ef51d52bf
Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 21:31:29 +00:00
dependabot[bot]
d446dc84d8
Bump handlebars from 4.7.6 to 4.7.7
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-08 14:12:35 +00:00
dependabot[bot]
ee996e4db4
Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 09:11:53 +00:00
Tim Heuer
1df9daf94e updating readme 2020-10-15 13:57:18 -07:00
Tim Heuer
fcb123ef6c Moving to fs-extra 2020-10-15 13:54:18 -07:00
Tim Heuer
68fedaa82a Fixing title for worklfow 2020-10-01 10:51:07 -07:00
Tim Heuer
5b10abf09e
Merge pull request #8 from timheuer/dependabot/npm_and_yarn/acorn-5.7.4
Bump acorn from 5.7.3 to 5.7.4
2020-10-01 10:47:39 -07:00
Tim Heuer
64291b71fa
Merge pull request #10 from timheuer/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-10-01 10:47:25 -07:00
Tim Heuer
9253f25800
Merge pull request #12 from timheuer/dependabot/npm_and_yarn/yargs-parser-13.1.2
Bump yargs-parser from 13.1.1 to 13.1.2
2020-10-01 10:47:17 -07:00
Tim Heuer
2fe614b534
Merge pull request #13 from timheuer/dependabot/npm_and_yarn/actions/core-1.2.6
Bump @actions/core from 1.1.1 to 1.2.6
2020-10-01 10:47:01 -07:00
Tim Heuer
df1fbeb5d3
Merge pull request #11 from timheuer/dependabot/npm_and_yarn/handlebars-4.7.6
Bump handlebars from 4.4.5 to 4.7.6
2020-10-01 10:46:44 -07:00
Tim Heuer
2da77ba1a8 Changing test workflow to matrix 2020-10-01 10:43:27 -07:00
dependabot[bot]
a0f3b3f8ee
Bump @actions/core from 1.1.1 to 1.2.6
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.1.1 to 1.2.6.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-01 17:26:27 +00:00
dependabot[bot]
99f040e2e4
Bump yargs-parser from 13.1.1 to 13.1.2
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/yargs/yargs-parser/releases)
- [Changelog](https://github.com/yargs/yargs-parser/blob/master/docs/CHANGELOG-full.md)
- [Commits](https://github.com/yargs/yargs-parser/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 03:00:52 +00:00
dependabot[bot]
172da96a71
Bump handlebars from 4.4.5 to 4.7.6
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.4.5 to 4.7.6.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.4.5...v4.7.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-10 03:07:11 +00:00
dependabot[bot]
abc0a68901
Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-19 01:58:15 +00:00
dependabot[bot]
fb839998d1
Bump acorn from 5.7.3 to 5.7.4
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-16 16:00:46 +00:00
Tim Heuer
5313db3e7c Readme fixup 2020-01-21 09:06:30 -08:00
Tim Heuer
a75dcdf3e4 bumping version 2020-01-21 09:02:45 -08:00
Tim Heuer
6f59c66836 Fix #7 using proper path joining 2020-01-21 08:59:16 -08:00
Tim Heuer
ddf9dac666 Adding windows-latest to a new workflow for test 2020-01-21 08:37:13 -08:00
Tim Heuer
c473f25783 Merge branch 'all-contributors/add-timheuer' 2020-01-21 07:45:12 -08:00
Tim Heuer
6d7769ba66 Formatting readme contributors 2020-01-21 07:44:58 -08:00
allcontributors[bot]
bb671ae424
docs: update .all-contributorsrc [skip ci] 2020-01-21 15:42:24 +00:00
allcontributors[bot]
ef27e1f194
docs: update README.md [skip ci] 2020-01-21 15:42:23 +00:00
Tim Heuer
5f8bf89247
Merge pull request #5 from timheuer/all-contributors/add-filipkowicz
docs: add filipkowicz as a contributor
2020-01-21 07:26:44 -08:00
allcontributors[bot]
2d21e7d7d8
docs: create .all-contributorsrc [skip ci] 2020-01-21 15:26:15 +00:00
allcontributors[bot]
a36b35cfe0
docs: update README.md [skip ci] 2020-01-21 15:26:14 +00:00
Tim Heuer
ca64385ae3
Merge pull request #4 from filipkowicz/patch-1
Update README.md with new version
2020-01-21 07:22:43 -08:00
Michał Filipek
09b914ffe5
Update README.md 2020-01-20 22:25:58 +01:00
Tim Heuer
10416be100 Generalizing failed message 2019-12-14 18:33:54 -08:00
Tim Heuer
3ab47b004c slashes are fun 2019-12-14 16:26:10 -08:00
11 changed files with 12939 additions and 511 deletions

109
.all-contributorsrc Normal file
View file

@ -0,0 +1,109 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "filipkowicz",
"name": "Michał Filipek",
"avatar_url": "https://avatars3.githubusercontent.com/u/4691550?v=4",
"profile": "https://github.com/filipkowicz",
"contributions": [
"doc"
]
},
{
"login": "timheuer",
"name": "Tim Heuer",
"avatar_url": "https://avatars3.githubusercontent.com/u/4821?v=4",
"profile": "https://timheuer.com/blog/",
"contributions": [
"code",
"doc"
]
},
{
"login": "tubone24",
"name": "tubone(Yu Otsubo)",
"avatar_url": "https://avatars.githubusercontent.com/u/9511227?v=4",
"profile": "https://portfolio.tubone-project24.xyz/",
"contributions": [
"code"
]
},
{
"login": "Ontokrat",
"name": "GG",
"avatar_url": "https://avatars.githubusercontent.com/u/23409319?v=4",
"profile": "https://github.com/Ontokrat",
"contributions": [
"doc"
]
},
{
"login": "danielz-nenda",
"name": "Daniel Zarins",
"avatar_url": "https://avatars.githubusercontent.com/u/74965667?v=4",
"profile": "http://www.nenda.com",
"contributions": [
"bug"
]
},
{
"login": "RobbieFrodsham",
"name": "Robbie Frodsham",
"avatar_url": "https://avatars.githubusercontent.com/u/47029725?v=4",
"profile": "https://github.com/RobbieFrodsham",
"contributions": [
"bug"
]
},
{
"login": "Blarkdackbyte",
"name": "Basti",
"avatar_url": "https://avatars.githubusercontent.com/u/14968844?v=4",
"profile": "https://github.com/Blarkdackbyte",
"contributions": [
"bug",
"code"
]
},
{
"login": "CodemenschenAndroid",
"name": "Codemenschen Android",
"avatar_url": "https://avatars.githubusercontent.com/u/60087122?v=4",
"profile": "https://github.com/CodemenschenAndroid",
"contributions": [
"bug"
]
},
{
"login": "awesomund",
"name": "Osmund Maheswaran",
"avatar_url": "https://avatars.githubusercontent.com/u/5211642?v=4",
"profile": "https://github.com/awesomund",
"contributions": [
"bug"
]
},
{
"login": "chenrui333",
"name": "Rui Chen",
"avatar_url": "https://avatars.githubusercontent.com/u/1580956?v=4",
"profile": "http://chenrui.dev",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
"projectName": "base64-to-file",
"projectOwner": "timheuer",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true,
"commitConvention": "angular",
"commitType": "docs"
}

View file

@ -0,0 +1,22 @@
{
"name": "Node.js & TypeScript",
"image": "mcr.microsoft.com/devcontainers/typescript-node:16-bullseye",
"features": {
"ghcr.io/devcontainers/features/sshd:1": {}
},
// Features to add to the dev container. More info: https://containers.dev/implementors/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

50
.github/workflows/test-matrix.yml vendored Normal file
View file

@ -0,0 +1,50 @@
name: "Action Test"
on:
push:
branches:
- main
workflow_dispatch:
branches:
- main
jobs:
# test action works running from the graph
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Write file (1)
id: write_file
uses: ./
with:
fileName: 'temp/dir/not/exists/myTemporaryFile.txt'
encodedString: ${{ secrets.SOME_ENCODED_STRING }} # SGVsbG8sIFdvcmxkIQ==
- name: Write file (2)
id: write_file2
uses: ./
with:
fileName: 'myTemporaryFile.json'
encodedString: ${{ secrets.ENCODED_JSON }}
- name: Echo file
run: |
echo ${{ steps.write_file.outputs.filePath }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: 'final-file-${{ matrix.os }}.txt'
path: ${{ steps.write_file.outputs.filePath }}
- name: Upload Artifact 2
uses: actions/upload-artifact@v3
with:
name: 'final-file-${{ matrix.os }}.json'
path: ${{ steps.write_file2.outputs.filePath }}

View file

@ -1,27 +0,0 @@
name: "Action Test"
on:
push:
branches:
- master
jobs:
# test action works running from the graph
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run Workflow
id: write_file
uses: ./
with:
fileName: 'myTemporaryFile.txt'
encodedString: ${{ secrets.SOME_ENCODED_STRING }} # SGVsbG8sIFdvcmxkIQ==
- name: Echo file
run: |
echo ${{ steps.write_file.outputs.filePath }}
- name: Upload Artifact
uses: actions/upload-artifact@master
with:
name: 'final-file.txt'
path: ${{ steps.write_file.outputs.filePath }}

1
.gitignore vendored
View file

@ -2,6 +2,7 @@ node_modules/
# Editors # Editors
.vscode .vscode
.vs/
# Logs # Logs
logs logs

View file

@ -1,4 +1,7 @@
# Base64 to File # Base64 to File
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Use this action if you need to get a file from a base64-encoded string that you may be storing in Secrets or elsewhere. This can be useful for certificate signing and storing the base64 cert in the Secrets. Use this action if you need to get a file from a base64-encoded string that you may be storing in Secrets or elsewhere. This can be useful for certificate signing and storing the base64 cert in the Secrets.
@ -7,19 +10,20 @@ Use this action if you need to get a file from a base64-encoded string that you
``` ```
- name: Run Workflow - name: Run Workflow
id: write_file id: write_file
uses: timheuer/base64-to-file@v1 uses: timheuer/base64-to-file@v1.2
with: with:
fileName: 'myTemporaryFile.txt' fileName: 'myTemporaryFile.txt'
fileDir: './main/folder/subfolder/'
encodedString: ${{ secrets.SOME_ENCODED_STRING }} encodedString: ${{ secrets.SOME_ENCODED_STRING }}
``` ```
By default this writes the `fileName` to a temporary path defined by `env.RUNNER_TEMP`. If you want a different path that is writable, specify `fileDir` as an input argument as well and then `fileDir` and `fileName` will be combined to create the path where the output will be written. This assumes permissions in the `fileDir` are correct and does not try to set them.
## Using the file in a later step ## Using the file in a later step
The Action has an output variable named filePath that you can use as this file is written to TEMP. Make sure you ad an `id` to your step when using this Action so that you can easily pull it out of the steps context later. The Action has an output variable named filePath that you can use as this file is written to TEMP. Make sure you ad an `id` to your step when using this Action so that you can easily pull it out of the steps context later.
``` ```
- name: Run Workflow - name: Run Workflow
id: write_file id: write_file
uses: timheuer/base64-to-file@v1 uses: timheuer/base64-to-file@v1.2
with: with:
fileName: 'myTemporaryFile.txt' fileName: 'myTemporaryFile.txt'
encodedString: ${{ secrets.SOME_ENCODED_STRING }} encodedString: ${{ secrets.SOME_ENCODED_STRING }}
@ -29,3 +33,48 @@ The Action has an output variable named filePath that you can use as this file i
with: with:
filelocation: ${{ steps.write_file.outputs.filePath }} filelocation: ${{ steps.write_file.outputs.filePath }}
``` ```
### Using this in a reusable workflow
As a special note, when using reusable workflows, repository secrets do not naturally 'flow' through to the workflow. So if your `encodedString` value is a repository secret and you expect this to work when this action is used in a reusable workflow, you need to specify the `secrets: inherit` value in that situation and put that where you are reusing this workflow.
## Building this repo
After making modifications to the source index.js file, to properly package the change you need to run
```
npm run package
```
which will modify/create the /dist folder with the final index.js output
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/filipkowicz"><img src="https://avatars3.githubusercontent.com/u/4691550?v=4?s=100" width="100px;" alt="Michał Filipek"/><br /><sub><b>Michał Filipek</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/commits?author=filipkowicz" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://timheuer.com/blog/"><img src="https://avatars3.githubusercontent.com/u/4821?v=4?s=100" width="100px;" alt="Tim Heuer"/><br /><sub><b>Tim Heuer</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/commits?author=timheuer" title="Code">💻</a> <a href="https://github.com/timheuer/base64-to-file/commits?author=timheuer" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://portfolio.tubone-project24.xyz/"><img src="https://avatars.githubusercontent.com/u/9511227?v=4?s=100" width="100px;" alt="tubone(Yu Otsubo)"/><br /><sub><b>tubone(Yu Otsubo)</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/commits?author=tubone24" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Ontokrat"><img src="https://avatars.githubusercontent.com/u/23409319?v=4?s=100" width="100px;" alt="GG"/><br /><sub><b>GG</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/commits?author=Ontokrat" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://www.nenda.com"><img src="https://avatars.githubusercontent.com/u/74965667?v=4?s=100" width="100px;" alt="Daniel Zarins"/><br /><sub><b>Daniel Zarins</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/issues?q=author%3Adanielz-nenda" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RobbieFrodsham"><img src="https://avatars.githubusercontent.com/u/47029725?v=4?s=100" width="100px;" alt="Robbie Frodsham"/><br /><sub><b>Robbie Frodsham</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/issues?q=author%3ARobbieFrodsham" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Blarkdackbyte"><img src="https://avatars.githubusercontent.com/u/14968844?v=4?s=100" width="100px;" alt="Basti"/><br /><sub><b>Basti</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/issues?q=author%3ABlarkdackbyte" title="Bug reports">🐛</a> <a href="https://github.com/timheuer/base64-to-file/commits?author=Blarkdackbyte" title="Code">💻</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/CodemenschenAndroid"><img src="https://avatars.githubusercontent.com/u/60087122?v=4?s=100" width="100px;" alt="Codemenschen Android"/><br /><sub><b>Codemenschen Android</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/issues?q=author%3ACodemenschenAndroid" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/awesomund"><img src="https://avatars.githubusercontent.com/u/5211642?v=4?s=100" width="100px;" alt="Osmund Maheswaran"/><br /><sub><b>Osmund Maheswaran</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/issues?q=author%3Aawesomund" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://chenrui.dev"><img src="https://avatars.githubusercontent.com/u/1580956?v=4?s=100" width="100px;" alt="Rui Chen"/><br /><sub><b>Rui Chen</b></sub></a><br /><a href="https://github.com/timheuer/base64-to-file/commits?author=chenrui333" title="Code">💻</a></td>
</tr>
</tbody>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

View file

@ -8,6 +8,9 @@ inputs:
description: 'Name of the file when written to temp location' description: 'Name of the file when written to temp location'
required: true required: true
default: 'decoded-file.file' default: 'decoded-file.file'
fileDir:
description: 'If it is set, change the output location to specific one from temp location.'
required: false
encodedString: encodedString:
description: 'The base64 encoded string' description: 'The base64 encoded string'
required: true required: true
@ -15,5 +18,5 @@ outputs:
filePath: filePath:
description: 'The temp file location' description: 'The temp file location'
runs: runs:
using: 'node12' using: 'node20'
main: 'dist/index.js' main: 'dist/index.js'

5864
dist/index.js vendored

File diff suppressed because it is too large Load diff

View file

@ -1,22 +1,29 @@
const core = require('@actions/core'); const core = require('@actions/core');
const fs = require('fs'); const fse = require('fs-extra')
const path = require('path');
// get input parameter values from config // get input parameter values from config
var fileName = process.env.RUNNER_TEMP + '\\' + core.getInput('fileName'); var fileName;
if (core.getInput('fileDir', {required: false})) {
fileName = path.join(core.getInput('fileDir'), core.getInput('fileName', {required: false}));
} else {
fileName = path.join(process.env.RUNNER_TEMP,core.getInput('fileName'));
}
var encodedString = core.getInput('encodedString'); var encodedString = core.getInput('encodedString');
// most @actions toolkit packages have async methods // most @actions toolkit packages have async methods
async function run() { async function run() {
try { try {
console.log(process.env); core.debug(process.env);
const tempFile = Buffer.from(encodedString, 'base64'); const tempFile = Buffer.from(encodedString, 'base64');
if (tempFile.length == 0) if (tempFile.length == 0)
core.setFailed('Certificate value is not set'); core.setFailed('encodedString value is not set');
fs.writeFile(fileName, tempFile, (err) => { fse.outputFile(fileName, tempFile, (err) => {
if (err) throw err; if (err) throw err;
console.log('Wrote file!'); core.debug('Wrote file!');
}); });
core.setOutput('filePath', fileName); core.setOutput('filePath', fileName);

6891
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{ {
"name": "base64-to-file", "name": "base64-to-file",
"version": "1.0.0", "version": "1.2.4",
"description": "base64 encoded string to a file", "description": "base64 encoded string to a file",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -25,10 +25,11 @@
}, },
"homepage": "https://github.com/timheuer/base64-to-file#readme", "homepage": "https://github.com/timheuer/base64-to-file#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.1.1" "@actions/core": "^1.10.0",
"fs-extra": "^9.0.1"
}, },
"devDependencies": { "devDependencies": {
"@zeit/ncc": "^0.20.5", "@vercel/ncc": "^0.34.0",
"eslint": "^6.3.0", "eslint": "^6.3.0",
"jest": "^24.9.0" "jest": "^24.9.0"
} }