Skip to content

Commit 5be8477

Browse files
committed
Use tag for Zinc
1 parent df6ac86 commit 5be8477

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎.github/workflows/sonatype_zinc.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Sonatype Zinc release
22
on:
33
workflow_dispatch:
44
inputs:
5-
sbt_ver:
5+
zinc_ver:
66
description: the version of sbt to release
77
required: true
88
default: 2.0.x
@@ -18,15 +18,15 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
env:
2020
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M
21-
SBT_VER: ${{ github.event.inputs.sbt_ver }}
21+
ZINC_VER: ${{ github.event.inputs.zinc_ver }}
2222
steps:
2323
- name: Checkout sbt/sbt-dist
2424
uses: actions/checkout@v7
2525
- name: Checkout sbt/sbt
2626
uses: actions/checkout@v7
2727
with:
2828
repository: sbt/zinc
29-
ref: "2.0.x"
29+
ref: v${{ github.event.inputs.zinc_ver }}
3030
path: zinc
3131
- name: Setup JDK
3232
uses: actions/setup-java@v5

‎.github/workflows/sonatype_zinc_1.x.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Sonatype Zinc 1.x release
22
on:
33
workflow_dispatch:
44
inputs:
5-
sbt_ver:
5+
zinc_ver:
66
description: the version of sbt to release
77
required: true
88
default: 1.12.x
@@ -18,15 +18,15 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
env:
2020
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M
21-
SBT_VER: ${{ github.event.inputs.sbt_ver }}
21+
ZINC_VER: ${{ github.event.inputs.zinc_ver }}
2222
steps:
2323
- name: Checkout sbt/sbt-dist
2424
uses: actions/checkout@v7
2525
- name: Checkout sbt/sbt
2626
uses: actions/checkout@v7
2727
with:
2828
repository: sbt/zinc
29-
ref: "1.12.x"
29+
ref: v${{ github.event.inputs.zinc_ver }}
3030
path: zinc
3131
- name: Setup JDK
3232
uses: actions/setup-java@v5

‎bin/run-ci.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ releaseSonatypeZinc() {
8686
installGpgkey
8787

8888
echo "credentials += Credentials(Path.userHome / \".sbt\" / \"credentials\")" > local.sbt
89-
echo "ThisBuild / version := \"$SBT_VER\"" >> local.sbt
89+
echo "ThisBuild / version := \"$ZINC_VER\"" >> local.sbt
9090

9191
mkdir -p $HOME/.sbt/
9292
echo "host = central.sonatype.com" > $HOME/.sbt/credentials

0 commit comments

Comments
 (0)