File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 65
65
uses : ./
66
66
with :
67
67
working-directory : sbt-plugin
68
+ sbt-plugin-version : 2.2.0-SNAPSHOT
68
69
69
70
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ inputs:
33
33
description : GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner.
34
34
required : false
35
35
default : ${{ github.token }}
36
+ sbt-plugin-version :
37
+ description : Version of the sbt plugin to use.
38
+ required : false
39
+ default : ' 2.1.0'
36
40
runs :
37
41
using : ' node16'
38
42
main : ' dist/index.js'
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ import * as fs from 'fs'
6
6
import * as fsPromises from 'fs/promises'
7
7
import * as path from 'path'
8
8
9
- // Version of the sbt-github-dependency-submission plugin
10
- const pluginVersion = '2.1.0'
11
-
12
9
async function run ( ) : Promise < void > {
13
10
try {
14
11
const token = core . getInput ( 'token' )
@@ -25,6 +22,7 @@ async function run(): Promise<void> {
25
22
const uuid = crypto . randomUUID ( )
26
23
const pluginFile = path . join ( projectDir , `github-dependency-submission-${ uuid } .sbt` )
27
24
25
+ const pluginVersion = core . getInput ( 'sbt-plugin-version' )
28
26
const pluginDep = `addSbtPlugin("ch.epfl.scala" % "sbt-github-dependency-submission" % "${ pluginVersion } ")`
29
27
await fsPromises . writeFile ( pluginFile , pluginDep )
30
28
// check that sbt is installed
You can’t perform that action at this time.
0 commit comments