Skip to content

Commit 860ddd4

Browse files
committed
feat: add storages logic and new git storage options
1 parent 8fa658f commit 860ddd4

10 files changed

Lines changed: 3332 additions & 6976 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules/
2+
/tmp/
23
/*.log

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ inputs:
3535
description: If the coverage percentage is not green and above or equal to this value, the badge will be orange. Otherwise it will be red.
3636
default: "70"
3737
required: false
38+
storage:
39+
description: "Define the place where the assets are uploaded to: wiki (default), github or git"
40+
default: "wiki"
41+
required: false
42+
git-url:
43+
description: Define the URL used by the git storage.
44+
required: false
45+
git-branch:
46+
description: Define the branch name used by the github/git storage.
47+
default: "coverage-diff"
48+
required: false
3849
runs:
3950
using: node16
4051
main: dist/index.js

dist/index.js

Lines changed: 3100 additions & 6732 deletions
Large diffs are not rendered by default.

dist/licenses.txt

Lines changed: 17 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ The above copyright notice and this permission notice shall be included in all c
1010

1111
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1212

13+
@actions/exec
14+
MIT
15+
The MIT License (MIT)
16+
17+
Copyright 2019 GitHub
18+
19+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
20+
21+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
22+
23+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24+
1325
@actions/github
1426
MIT
1527
The MIT License (MIT)
@@ -47,54 +59,17 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
4759
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4860

4961

50-
@kwsites/file-exists
62+
@actions/io
5163
MIT
5264
The MIT License (MIT)
5365

54-
Copyright (c) 2015 Steve King
55-
56-
Permission is hereby granted, free of charge, to any person obtaining a copy of
57-
this software and associated documentation files (the "Software"), to deal in
58-
the Software without restriction, including without limitation the rights to
59-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
60-
the Software, and to permit persons to whom the Software is furnished to do so,
61-
subject to the following conditions:
62-
63-
The above copyright notice and this permission notice shall be included in all
64-
copies or substantial portions of the Software.
65-
66-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
67-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
68-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
69-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
70-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
71-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
72-
73-
74-
@kwsites/promise-deferred
75-
MIT
76-
MIT License
77-
78-
Copyright (c) 2018 kwsites
79-
80-
Permission is hereby granted, free of charge, to any person obtaining a copy
81-
of this software and associated documentation files (the "Software"), to deal
82-
in the Software without restriction, including without limitation the rights
83-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84-
copies of the Software, and to permit persons to whom the Software is
85-
furnished to do so, subject to the following conditions:
66+
Copyright 2019 GitHub
8667

87-
The above copyright notice and this permission notice shall be included in all
88-
copies or substantial portions of the Software.
68+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8969

90-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
96-
SOFTWARE.
70+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9771

72+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9873

9974
@octokit/auth-token
10075
MIT
@@ -508,30 +483,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
508483
SOFTWARE.
509484

510485

511-
debug
512-
MIT
513-
(The MIT License)
514-
515-
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
516-
Copyright (c) 2018-2021 Josh Junon
517-
518-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
519-
and associated documentation files (the 'Software'), to deal in the Software without restriction,
520-
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
521-
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
522-
subject to the following conditions:
523-
524-
The above copyright notice and this permission notice shall be included in all copies or substantial
525-
portions of the Software.
526-
527-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
528-
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
529-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
530-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
531-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
532-
533-
534-
535486
deprecation
536487
ISC
537488
The ISC License
@@ -602,31 +553,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
602553
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
603554

604555

605-
ms
606-
MIT
607-
The MIT License (MIT)
608-
609-
Copyright (c) 2016 Zeit, Inc.
610-
611-
Permission is hereby granted, free of charge, to any person obtaining a copy
612-
of this software and associated documentation files (the "Software"), to deal
613-
in the Software without restriction, including without limitation the rights
614-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
615-
copies of the Software, and to permit persons to whom the Software is
616-
furnished to do so, subject to the following conditions:
617-
618-
The above copyright notice and this permission notice shall be included in all
619-
copies or substantial portions of the Software.
620-
621-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
622-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
623-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
624-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
625-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
626-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
627-
SOFTWARE.
628-
629-
630556
node-fetch
631557
MIT
632558
The MIT License (MIT)
@@ -672,30 +598,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
672598
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
673599

674600

675-
simple-git
676-
MIT
677-
The MIT License (MIT)
678-
679-
Copyright (c) 2022 Steve King
680-
681-
Permission is hereby granted, free of charge, to any person obtaining a copy of
682-
this software and associated documentation files (the "Software"), to deal in
683-
the Software without restriction, including without limitation the rights to
684-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
685-
the Software, and to permit persons to whom the Software is furnished to do so,
686-
subject to the following conditions:
687-
688-
The above copyright notice and this permission notice shall be included in all
689-
copies or substantial portions of the Software.
690-
691-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
692-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
693-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
694-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
695-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
696-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
697-
698-
699601
tr46
700602
MIT
701603

0 commit comments

Comments
 (0)