Skip to content

Commit fa8b0dc

Browse files
committed
Update sbt-github-actions to 0.24.0
Regenerate GitHub Actions workflow
1 parent b40a145 commit fa8b0dc

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,48 +27,42 @@ 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

55-
- name: Cache sbt
56-
uses: actions/cache@v2
57-
with:
58-
path: |
59-
~/.sbt
60-
~/.ivy2/cache
61-
~/.coursier/cache/v1
62-
~/.cache/coursier/v1
63-
~/AppData/Local/Coursier/Cache/v1
64-
~/Library/Caches/Coursier/v1
65-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
58+
- name: Setup sbt
59+
uses: sbt/setup-sbt@v1
6660

6761
- name: Check that workflows are up to date
68-
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
62+
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
6963

7064
- name: Build project
71-
run: sbt ++${{ matrix.scala }} test
65+
run: sbt '++ ${{ matrix.scala }}' test
7266

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

.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)