Skip to content

Commit 21062a9

Browse files
committed
Update actions
1 parent 6641cac commit 21062a9

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

.github/labeler.yml

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

.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: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ on:
55
push:
66
branches: ['**']
77
tags: [v*]
8+
permissions:
9+
contents: write # release-drafter, auto-merge requirement
10+
pull-requests: write # labeler, auto-merge requirement
811
jobs:
912
build:
1013
uses: softwaremill/github-actions-workflows/.github/workflows/build-scala.yml@main
11-
# run on 1) push, 2) external PRs, 3) softwaremill-ci PRs
14+
# run on 1) push, 2) external PRs, 3) github-actions[bot] PRs
1215
# do not run on internal, non-steward PRs since those will be run by push to branch
1316
if: |
1417
github.event_name == 'push' ||
1518
github.event.pull_request.head.repo.full_name != github.repository ||
16-
github.event.pull_request.user.login == 'softwaremill-ci'
19+
github.event.pull_request.user.login == 'github-actions[bot]'
1720
with:
1821
java-opts: '-Xmx3000M -Dsbt.task.timings=true'
1922
sttp-native: 1
@@ -34,12 +37,14 @@ jobs:
3437
sttp-native: 1
3538

3639
label:
37-
# only for PRs by softwaremill-ci
38-
if: github.event.pull_request.user.login == 'softwaremill-ci'
40+
# only for PRs by github-actions[bot]
41+
if: github.event.pull_request.user.login == 'github-actions[bot]'
3942
uses: softwaremill/github-actions-workflows/.github/workflows/label.yml@main
43+
secrets: inherit
4044

4145
auto-merge:
42-
# only for PRs by softwaremill-ci
43-
if: github.event.pull_request.user.login == 'softwaremill-ci'
46+
# only for PRs by github-actions[bot]
47+
if: github.event.pull_request.user.login == 'github-actions[bot]'
4448
needs: [ build, mima, label ]
45-
uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main
49+
uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main
50+
secrets: inherit

.github/workflows/scala-steward.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +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 }}
18+
with:
19+
java-version: '21'

0 commit comments

Comments
 (0)