Skip to content

Commit

Permalink
Merge pull request #674 from ThoughtWorksInc/update/template
Browse files Browse the repository at this point in the history
Update template
  • Loading branch information
Atry authored Jul 1, 2023
2 parents 1fa338c + 3a2617d commit bae4b07
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 20 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/scala-project-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
push:
branches-ignore:
- "update/**"
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

name: Update Scala project template

jobs:
update-scala-project-template:
permissions:
# for aws-actions/configure-aws-credentials to assume an AWS role
id-token: write
# for peter-evans/create-pull-request to create branch
contents: write
# for peter-evans/create-pull-request to create a PR
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: git fetch https://github.com/Atry/scala-project-template.git template
- run: git reset --hard FETCH_HEAD
- uses: peter-evans/create-pull-request@v5
with:
delete-branch: true
base: ${{github.ref_name}}
branch: update/${{github.ref_name}}/scala-project-template
title: Update scala-project-template
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
5 changes: 0 additions & 5 deletions .gitpod.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
runner.dialect = "scala3"
version = "3.7.1"
version = "3.7.5"
maxColumn = 80
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.1
12 changes: 0 additions & 12 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
addSbtPlugin(
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.3.0"
)

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.20")

addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

addSbtPlugin("com.thoughtworks.example" % "sbt-example" % "9.2.1")

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.1")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.1")
Expand Down
3 changes: 3 additions & 0 deletions project/sbt-best-practice.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
addSbtPlugin(
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.3.0"
)
2 changes: 1 addition & 1 deletion secret.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lazy val secret = {
org.eclipse.jgit.api.Git
.cloneRepository()
.setURI(
"https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git"
"https://github.com/Atry/secrets.git"
)
.setDirectory(secretDirectory)
.setCredentialsProvider(
Expand Down

0 comments on commit bae4b07

Please sign in to comment.