Skip to content

Commit 5484310

Browse files
Update sbt-github-actions to 0.24.0 (#44)
* Update sbt-github-actions to 0.24.0 * Regenerate GitHub Actions workflow Executed command: sbt githubWorkflowGenerate
1 parent 64bc269 commit 5484310

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,55 +27,50 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- name: Checkout current branch (full)
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

3434
- name: Setup Java (temurin@8)
3535
if: matrix.java == 'temurin@8'
36-
uses: actions/setup-java@v2
36+
uses: actions/setup-java@v4
3737
with:
3838
distribution: temurin
3939
java-version: 8
40+
cache: sbt
4041

4142
- name: Setup Java (temurin@11)
4243
if: matrix.java == 'temurin@11'
43-
uses: actions/setup-java@v2
44+
uses: actions/setup-java@v4
4445
with:
4546
distribution: temurin
4647
java-version: 11
48+
cache: sbt
4749

4850
- name: Setup Java (temurin@17)
4951
if: matrix.java == 'temurin@17'
50-
uses: actions/setup-java@v2
52+
uses: actions/setup-java@v4
5153
with:
5254
distribution: temurin
5355
java-version: 17
56+
cache: sbt
5457

5558
- name: Setup Java (temurin@21)
5659
if: matrix.java == 'temurin@21'
57-
uses: actions/setup-java@v2
60+
uses: actions/setup-java@v4
5861
with:
5962
distribution: temurin
6063
java-version: 21
64+
cache: sbt
6165

62-
- name: Cache sbt
63-
uses: actions/cache@v2
64-
with:
65-
path: |
66-
~/.sbt
67-
~/.ivy2/cache
68-
~/.coursier/cache/v1
69-
~/.cache/coursier/v1
70-
~/AppData/Local/Coursier/Cache/v1
71-
~/Library/Caches/Coursier/v1
72-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
66+
- name: Setup sbt
67+
uses: sbt/setup-sbt@v1
7368

7469
- name: Check that workflows are up to date
75-
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
70+
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
7671

7772
- name: Build project
78-
run: sbt ++${{ matrix.scala }} test
73+
run: sbt '++ ${{ matrix.scala }}' test
7974

8075
- run: 'sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M test'
8176

.github/workflows/clean.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
1919
- name: Delete artifacts
20+
shell: bash {0}
2021
run: |
2122
# Customize those three lines with your repository and credentials:
2223
REPO=${GITHUB_API_URL}/repos/${{ github.repository }}
@@ -25,7 +26,7 @@ jobs:
2526
ghapi() { curl --silent --location --user _:$GITHUB_TOKEN "$@"; }
2627
2728
# A temporary file which receives HTTP response headers.
28-
TMPFILE=/tmp/tmp.$$
29+
TMPFILE=$(mktemp)
2930
3031
# An associative array, key: artifact name, value: number of artifacts of that name.
3132
declare -A ARTCOUNT

project/sbt-github-actions.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
1+
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.24.0")

0 commit comments

Comments
 (0)