Skip to content

Commit 21b7daa

Browse files
committed
Update Github Actions to use environments
1 parent b62fb49 commit 21b7daa

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/nebula-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ jobs:
1414
java: [ 8, 9, 11, 17, 21]
1515
name: CI with Java ${{ matrix.java }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
2020
- name: Setup jdk
21-
uses: actions/setup-java@v3
21+
uses: actions/setup-java@v5
2222
with:
2323
# Install both the version we'll test with AND 8, which goes later so that it's the default for gradle to run with.
2424
java-version: |
2525
${{ matrix.java }}
2626
8
2727
distribution: 'zulu'
28-
- uses: actions/cache@v4
28+
- uses: actions/cache@v5
2929
id: gradle-cache
3030
with:
3131
path: ~/.gradle/caches
3232
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }}
3333
restore-keys: |
3434
- ${{ runner.os }}-gradle-
35-
- uses: actions/cache@v4
35+
- uses: actions/cache@v5
3636
id: gradle-wrapper-cache
3737
with:
3838
path: ~/.gradle/wrapper

.github/workflows/nebula-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
environment: Publish
1112
steps:
12-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1314
- name: Setup jdk 8
14-
uses: actions/setup-java@v3
15+
uses: actions/setup-java@v5
1516
with:
1617
java-version: '8' # For publishing build with 8 for compatibility
1718
distribution: 'zulu'
18-
- uses: actions/cache@v4
19+
- uses: actions/cache@v5
1920
id: gradle-cache
2021
with:
2122
path: ~/.gradle/caches
2223
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }}
2324
restore-keys: |
2425
- ${{ runner.os }}-gradle-
25-
- uses: actions/cache@v4
26+
- uses: actions/cache@v5
2627
id: gradle-wrapper-cache
2728
with:
2829
path: ~/.gradle/wrapper

.github/workflows/nebula-snapshot.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
environment: Publish
1112
steps:
12-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1314
with:
1415
fetch-depth: 0
1516
- name: Set up JDK
16-
uses: actions/setup-java@v3
17+
uses: actions/setup-java@v5
1718
with:
1819
java-version: '8' # For publishing build with 8 for compatibility
1920
distribution: 'zulu'
20-
- uses: actions/cache@v4
21+
- uses: actions/cache@v5
2122
id: gradle-cache
2223
with:
2324
path: |
2425
~/.gradle/caches
2526
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
26-
- uses: actions/cache@v4
27+
- uses: actions/cache@v5
2728
id: gradle-wrapper-cache
2829
with:
2930
path: |

0 commit comments

Comments
 (0)