Skip to content

Commit 0622881

Browse files
build: use global action step (#188)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cf1fe31 commit 0622881

File tree

7 files changed

+27
-15
lines changed

7 files changed

+27
-15
lines changed

.github/workflows/build-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
with:
4343
jvm: temurin:1.11.0
4444

45+
- name: Run akka/github-actions-scripts
46+
uses: akka/github-actions-scripts/setup_global_resolver@main
47+
4548
- name: Code style check, compilation and binary-compatibility check
4649
run: |-
4750
cp .jvmopts-ci .jvmopts
@@ -77,6 +80,9 @@ jobs:
7780
with:
7881
jvm: temurin:1.11.0
7982

83+
- name: Run akka/github-actions-scripts
84+
uses: akka/github-actions-scripts/setup_global_resolver@main
85+
8086
- name: Start DB
8187
run: |-
8288
docker compose -f docker/docker-compose-with-s3.yml up --wait
@@ -116,6 +122,9 @@ jobs:
116122
with:
117123
jvm: temurin:1.25
118124

125+
- name: Run akka/github-actions-scripts
126+
uses: akka/github-actions-scripts/setup_global_resolver@main
127+
119128
- name: Run Paradox
120129
run: |-
121130
cp .jvmopts-ci .jvmopts

.github/workflows/link-validator.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,8 @@ jobs:
1414
runs-on: Akka-Default
1515
if: github.event.repository.fork == false
1616
steps:
17-
- name: Checkout Global Scripts
18-
# This MUST be before the main checkout or else the dynver will not work
19-
uses: actions/checkout@v6
20-
with:
21-
repository: akka/github-actions-scripts
22-
path: scripts
23-
fetch-depth: 0
24-
25-
- name: Setup global resolver
26-
run: |
27-
chmod +x ./scripts/setup_global_resolver.sh
28-
./scripts/setup_global_resolver.sh
17+
- name: Run akka/github-actions-scripts
18+
uses: akka/github-actions-scripts/setup_global_resolver@main
2919

3020
- name: Checkout
3121
# https://github.com/actions/checkout/releases

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
with:
3636
jvm: temurin:1.11
3737

38+
- name: Run akka/github-actions-scripts
39+
uses: akka/github-actions-scripts/setup_global_resolver@main
40+
3841
- name: Publish
3942
run: |-
4043
sbt +publish
@@ -62,6 +65,9 @@ jobs:
6265
with:
6366
jvm: temurin:1.25
6467

68+
- name: Run akka/github-actions-scripts
69+
uses: akka/github-actions-scripts/setup_global_resolver@main
70+
6571
- name: Publish
6672
run: |-
6773
eval "$(ssh-agent -s)"

.github/workflows/weekly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
with:
5252
jvm: ${{ matrix.JVM_NAME }}
5353

54+
- name: Run akka/github-actions-scripts
55+
uses: akka/github-actions-scripts/setup_global_resolver@main
56+
5457
- name: Cache Build Target
5558
uses: actions/cache@v4.2.0
5659
with:

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ The current versions of all Akka libraries are listed on the [Akka Dependencies]
2929

3030
This library is ready to be used in production, APIs are stable, and the Lightbend subscription covers support for this project.
3131

32+
## Build Token
33+
34+
To build locally, you need to fetch a token at https://account.akka.io/token that you have to place into `~/.sbt/1.0/akka-commercial.sbt` file like this:
35+
```
36+
ThisBuild / resolvers += "lightbend-akka".at("your token resolver here")
37+
```
38+
3239
## License
3340

3441
Akka is licensed under the Business Source License 1.1, please see the [Akka License FAQ](https://www.lightbend.com/akka/license-faq).

build.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ inThisBuild(
3535
description := "An Akka Persistence plugin backed by Amazon DynamoDB",
3636
// append -SNAPSHOT to version when isSnapshot
3737
dynverSonatypeSnapshots := true,
38-
resolvers += "Akka library repository".at("https://repo.akka.io/maven/github_actions"),
3938
resolvers ++=
4039
(if (Dependencies.AkkaVersion.endsWith("-SNAPSHOT"))
4140
Seq("Akka library snapshot repository".at("https://repo.akka.io/snapshots/github_actions"))

project/plugins.sbt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
resolvers += "Akka library repository".at("https://repo.akka.io/maven/github_actions")
2-
31
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0") // for maintenance of copyright file header
42
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
53
addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.10.0")

0 commit comments

Comments
 (0)