Skip to content

Commit cc0b49f

Browse files
committed
fix: forget to check cache hits
1 parent b39909a commit cc0b49f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838

3939
- name: Cache .m2 directory
4040
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
41+
id: cache
4142
with:
4243
path: ~/.m2
4344
key: m2-cache
@@ -48,6 +49,7 @@ jobs:
4849
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
4950

5051
- name: Setup BuildTools
52+
if: steps.cache.outputs.cache-hit != 'true'
5153
run: |
5254
wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"
5355
java -jar BuildTools.jar --rev 1.14.4

0 commit comments

Comments
 (0)