Skip to content

Commit 51da326

Browse files
authored
Merge pull request #191 from ThoughtWorksInc/70a9807
Merge template
2 parents 704fb25 + c4fd358 commit 51da326

File tree

7 files changed

+43
-11
lines changed

7 files changed

+43
-11
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Scala Steward: Reformat with scalafmt 3.1.2
2+
fb6cfb8aea15a1b339e3ed69e1e96acd7df4cae6

.github/workflows/scala-steward.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- update/**
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
8+
name: Launch Scala Steward
9+
10+
jobs:
11+
scala-steward:
12+
runs-on: ubuntu-22.04
13+
name: Launch Scala Steward
14+
steps:
15+
- name: Launch Scala Steward
16+
uses: scala-steward-org/scala-steward-action@v2
17+
with:
18+
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
19+
branches: ${{ github.ref_name }}

.github/workflows/scala.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
13+
fail-fast: false
1314
matrix:
1415
include:
1516
- scala: 3.2.1
@@ -18,18 +19,19 @@ jobs:
1819
- scala: 2.13.4
1920

2021
steps:
21-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2223
with:
2324
fetch-depth: 0 # Need the git history for sbt-dynver to determine the version
2425
- name: Set up JDK 11
25-
uses: actions/setup-java@v2
26+
uses: actions/setup-java@v3
2627
with:
2728
java-version: '11'
28-
distribution: 'adopt'
29+
distribution: temurin
2930
- name: Cache SBT
30-
uses: actions/cache@v2
31+
uses: actions/cache@v3
3132
with:
3233
path: |
34+
~/.ivy2/local/
3335
~/.ivy2/cache/
3436
~/.sbt/
3537
~/.coursier/
@@ -42,5 +44,5 @@ jobs:
4244
- name: Publish to Maven Central Repository
4345
env:
4446
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
45-
if: ${{env.GITHUB_PERSONAL_ACCESS_TOKEN != ''}}
47+
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' }}
4648
run: sbt ${{matrix.sbt-args}} ++${{matrix.scala}} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}} ${{github.run_number}} ${{github.run_attempt}} ${{matrix.scala}}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ secret/
44
.metals/
55
.bloop/
66
metals.sbt
7-
.bsp/sbt.json
7+
.bsp/
8+
.vscode/launch.json
9+
*.scala.semanticdb

.scalafmt.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "3.6.1"
2-
maxColumn = 120
31
runner.dialect = scala3
2+
version = "3.6.1"
3+
maxColumn = 80

project/plugins.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.2.4")
1+
addSbtPlugin(
2+
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.2.4"
3+
)
24

35
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.15")
46

secret.sbt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ lazy val secret = {
55
IO.delete(secretDirectory)
66
org.eclipse.jgit.api.Git
77
.cloneRepository()
8-
.setURI("https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git")
8+
.setURI(
9+
"https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git"
10+
)
911
.setDirectory(secretDirectory)
1012
.setCredentialsProvider(
11-
new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider(token, "")
13+
new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider(
14+
token,
15+
""
16+
)
1217
)
1318
.call()
1419
.close()

0 commit comments

Comments
 (0)