Skip to content

Commit 349f5e4

Browse files
committed
Update actions
1 parent 2c8d874 commit 349f5e4

File tree

6 files changed

+20
-31
lines changed

6 files changed

+20
-31
lines changed

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 1
22
labels:
33
- label: "automerge"
4-
authors: ["softwaremill-ci"]
4+
authors: ["github-actions[bot]"]
55
files:
66
- "build.sbt"
77
- "project/build.properties"
88
- "project/Versions.scala"
99
- "project/plugins.sbt"
1010
- label: "dependency"
11-
authors: ["softwaremill-ci"]
11+
authors: ["github-actions[bot]"]
1212
files:
1313
- "build.sbt"
1414
- "project/build.properties"

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
template: |
2-
## Whats Changed
2+
## What's Changed
33
44
$CHANGES

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: [ master ]
77
tags: [ v* ]
8+
permissions:
9+
contents: write # release-drafter, auto-merge requirement
10+
pull-requests: write # labeler, auto-merge requirement
811
jobs:
912
ci:
1013
runs-on: ubuntu-24.04
@@ -21,7 +24,7 @@ jobs:
2124
distribution: 'temurin'
2225
java-version: ${{ matrix.java }}
2326
cache: 'sbt'
24-
- uses: sbt/setup-sbt@v1
27+
- uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1, specifically v1.1.14
2528
- name: Check formatting
2629
run: sbt -v scalafmtCheckAll
2730
- name: Compile
@@ -52,12 +55,14 @@ jobs:
5255
java-version: '21'
5356

5457
label:
55-
# only for PRs by softwaremill-ci
56-
if: github.event.pull_request.user.login == 'softwaremill-ci'
58+
# only for PRs by github-actions[bot]
59+
if: github.event.pull_request.user.login == 'github-actions[bot]'
5760
uses: softwaremill/github-actions-workflows/.github/workflows/label.yml@main
61+
secrets: inherit
5862

5963
auto-merge:
60-
# only for PRs by softwaremill-ci
61-
if: github.event.pull_request.user.login == 'softwaremill-ci'
64+
# only for PRs by github-actions[bot]
65+
if: github.event.pull_request.user.login == 'github-actions[bot]'
6266
needs: [ ci, label, mima ]
63-
uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main
67+
uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main
68+
secrets: inherit

.github/workflows/rebase-cmd-dispatch.yml

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

.github/workflows/rebase-cmd.yml

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

.github/workflows/scala-steward.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ on:
66
- cron: '0 0 * * *'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write # Required to checkout and push changes
11+
pull-requests: write # Required to create PRs for dependency updates
12+
913
jobs:
1014
scala-steward:
1115
uses: softwaremill/github-actions-workflows/.github/workflows/scala-steward.yml@main
1216
secrets:
13-
repo-github-token: ${{secrets.REPO_GITHUB_TOKEN}}
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
1418
with:
15-
java-version: '21'
19+
java-version: '21'

0 commit comments

Comments
 (0)