Skip to content

Commit 53f9ef5

Browse files
committed
Test action using SNAPSHOT version of plugin
1 parent af5bbb7 commit 53f9ef5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ jobs:
6565
uses: ./
6666
with:
6767
working-directory: sbt-plugin
68+
sbt-plugin-version: 2.2.0-SNAPSHOT
6869

6970

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ inputs:
3333
description: GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner.
3434
required: false
3535
default: ${{ github.token }}
36+
sbt-plugin-version:
37+
description: Version of the sbt plugin to use.
38+
required: false
39+
default: '2.1.0'
3640
runs:
3741
using: 'node16'
3842
main: 'dist/index.js'

src/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import * as fs from 'fs'
66
import * as fsPromises from 'fs/promises'
77
import * as path from 'path'
88

9-
// Version of the sbt-github-dependency-submission plugin
10-
const pluginVersion = '2.1.0'
11-
129
async function run(): Promise<void> {
1310
try {
1411
const token = core.getInput('token')
@@ -25,6 +22,7 @@ async function run(): Promise<void> {
2522
const uuid = crypto.randomUUID()
2623
const pluginFile = path.join(projectDir, `github-dependency-submission-${uuid}.sbt`)
2724

25+
const pluginVersion = core.getInput('sbt-plugin-version')
2826
const pluginDep = `addSbtPlugin("ch.epfl.scala" % "sbt-github-dependency-submission" % "${pluginVersion}")`
2927
await fsPromises.writeFile(pluginFile, pluginDep)
3028
// check that sbt is installed

0 commit comments

Comments
 (0)