-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathaction.yml
More file actions
27 lines (27 loc) · 728 Bytes
/
action.yml
File metadata and controls
27 lines (27 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Setup JDK, JBang, and gradle
description: Setup JDK, JBang and gradle
runs:
using: composite
steps:
- name: Setup JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'corretto'
check-latest: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Generate JBang cache key
id: cache-key
shell: bash
run: |
echo "cache_key=jbang-$(date +%Y-%m)" >> $GITHUB_OUTPUT
- name: Cache JBang
uses: actions/cache@v5
with:
path: ~/.jbang
key: ${{ steps.cache-key.outputs.cache_key }}
restore-keys:
jbang-
- name: Setup JBang
uses: jbangdev/setup-jbang@main