Skip to content

Commit fa71cc9

Browse files
authored
Merge pull request #9 from Atry/update/template
Update template
2 parents 3fbc61b + e9a0525 commit fa71cc9

File tree

7 files changed

+37
-22
lines changed

7 files changed

+37
-22
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- "update/**"
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
workflow_dispatch:
8+
9+
name: Update Scala project template
10+
11+
jobs:
12+
update-scala-project-template:
13+
permissions:
14+
# for peter-evans/create-pull-request to create branch
15+
contents: write
16+
# for peter-evans/create-pull-request to create a PR
17+
pull-requests: write
18+
runs-on: ubuntu-22.04
19+
steps:
20+
- uses: actions/checkout@v3
21+
- run: git fetch https://github.com/Atry/scala-project-template.git template
22+
- run: git reset --hard FETCH_HEAD
23+
- uses: peter-evans/create-pull-request@v5
24+
continue-on-error: true
25+
with:
26+
delete-branch: true
27+
base: ${{github.ref_name}}
28+
branch: update/${{github.ref_name}}/scala-project-template
29+
title: Update scala-project-template
30+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}

.github/workflows/scala.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
with:
3333
java-version: "11"
3434
distribution: temurin
35+
- uses: sbt/setup-sbt@v1
3536
- name: Cache SBT
3637
uses: actions/cache@v3
3738
with:

.gitpod.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.scalafmt.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
runner.dialect = scala3
2-
version = "3.7.2"
1+
runner.dialect = scala212source3
2+
version = "3.8.3"
33
maxColumn = 80

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.8.2
1+
sbt.version=1.10.7

project/plugins.sbt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
addSbtPlugin(
2-
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.3.0"
3-
)
4-
5-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.17")
6-
7-
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
8-
9-
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
10-
11-
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2")
12-
13-
addSbtPlugin("com.thoughtworks.example" % "sbt-example" % "9.3.0")
14-
151
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0")
162

173
addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "4.1.1")

project/sbt-best-practice.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
addSbtPlugin(
2+
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.3.1"
3+
)

0 commit comments

Comments
 (0)