Skip to content

Commit

Permalink
Merge pull request #217 from ThoughtWorksInc/update/template
Browse files Browse the repository at this point in the history
Update template
  • Loading branch information
Atry authored Jan 14, 2024
2 parents 4d3f153 + a335404 commit 9887f2e
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 21 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 = scala212source3
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
13 changes: 0 additions & 13 deletions project/plugins.sbt

This file was deleted.

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 9887f2e

Please sign in to comment.