File tree 3 files changed +36
-1
lines changed
3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ The name of a module contains the name of the project and its binary version.
45
45
46
46
Example : ` foo_2.13 bar_2.13`
47
47
48
+ # ### - `configs-ignore` (optional)
49
+
50
+ A list of space-separated names of configurations to ignore. The action will not submit the dependencies of these configurations.
51
+
52
+ Example of configurations are `compile`, `test`, `scala-tool`, `scala-doc-tool`.
53
+
48
54
# ### - `token` (optional)
49
55
50
56
GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner.
@@ -53,6 +59,8 @@ Example: `${{ secrets.USER_TOKEN }}`
53
59
54
60
# ### Example
55
61
62
+ # #### Excluding some projects or some Scala versions from the dependency submission.
63
+
56
64
In this example the snapshot will not contain the graphs of `foo_2.13` and `bar_3`.
57
65
58
66
` ` ` yaml
@@ -67,6 +75,22 @@ steps:
67
75
modules-ignore: foo_2.13 bar_3
68
76
` ` `
69
77
78
+ # ### Excluding the Scaladoc dependencies.
79
+
80
+ In this example the snapshot will not contain the dependencies of the scala-doc-tool configuration.
81
+
82
+ ` ` ` yaml
83
+
84
+ ## in .github/workflows/dependency-graph.md
85
+ ...
86
+ steps:
87
+ - uses: actions/checkout@v3
88
+ - uses: scalacenter/sbt-dependency-submission@v2
89
+ with:
90
+ base-dir: ./my-scala-project
91
+ configs-ignore: scala-doc-tool
92
+ ` ` `
93
+
70
94
# # Troubleshooting
71
95
72
96
# ## Unexpected Status: 404
Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ inputs:
16
16
Example: `foo_2.13 bar_2.13`
17
17
required : false
18
18
default : ' '
19
+ configs-ignore :
20
+ description : |
21
+ A list of space-separated names of configurations to ignore. The action will not submit the dependencies of these configurations.
22
+ Example: `test scala-doc-tool`
23
+ required : false
24
+ default : ' '
19
25
on-resolve-failure :
20
26
description : |
21
27
Either 'error' or 'warning'.
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ async function run(): Promise<void> {
35
35
. split ( ' ' )
36
36
. filter ( value => value . length > 0 )
37
37
38
+ const ignoredConfigs = core
39
+ . getInput ( 'configs-ignore' )
40
+ . split ( ' ' )
41
+ . filter ( value => value . length > 0 )
42
+
38
43
const onResolveFailure = core . getInput ( 'on-resolve-failure' )
39
44
if ( ! [ 'error' , 'warning' ] . includes ( onResolveFailure ) ) {
40
45
core . setFailed (
@@ -43,7 +48,7 @@ async function run(): Promise<void> {
43
48
return
44
49
}
45
50
46
- const input = { ignoredModules, onResolveFailure }
51
+ const input = { ignoredModules, ignoredConfigs , onResolveFailure }
47
52
48
53
process . env [ 'GITHUB_TOKEN' ] = token
49
54
await cli . exec ( 'sbt' , [ `githubSubmitDependencyGraph ${ JSON . stringify ( input ) } ` ] , {
You can’t perform that action at this time.
0 commit comments