Skip to content

Commit 10e6b88

Browse files
committed
Updated github actions to latest versions and added the DV access key as env var
1 parent 15c3a88 commit 10e6b88

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/actions/setup-environment/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@ description: Installs required JDKs for building and testing
33
runs:
44
using: "composite"
55
steps:
6+
67
- name: 'Set up JDK 8'
7-
uses: actions/setup-java@v3
8+
uses: actions/setup-java@v4
89
with:
910
distribution: 'temurin'
1011
java-version: 8
12+
1113
- name: Prepare JDK8 env var
1214
shell: bash
1315
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
14-
- name: 'Setup Gradle Build'
15-
uses: gradle/gradle-build-action@v2
16+
17+
- name: 'Setup Gradle'
18+
uses: gradle/actions/setup-gradle@v3
19+
1620
- name: Setup Git user
1721
shell: bash
1822
run: |

.github/workflows/verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8+
workflow_dispatch:
89

910
# https://stackoverflow.com/a/72408109/16358266
1011
concurrency:
@@ -16,10 +17,13 @@ jobs:
1617
runs-on: 'ubuntu-latest'
1718
steps:
1819
- uses: actions/checkout@v4
20+
1921
- name: "Setup Build Environment"
2022
uses: ./.github/actions/setup-environment
2123

2224
- name: "Verify"
25+
env:
26+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
2327
run: "./gradlew build -s"
2428

2529
- name: "Store reports"

.github/workflows/wrapper-upgrade.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 1
16+
1617
- name: Set up Git config
1718
env:
1819
TOKEN: ${{ secrets.GH_BOT_GITHUB_TOKEN }}
1920
run: |
2021
git config --global url."https://bot-githubaction:${TOKEN}@github.com/".insteadOf "https://github.com/"
22+
2123
- name: Import GPG key
2224
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4
2325
with:
@@ -26,13 +28,17 @@ jobs:
2628
git_user_signingkey: true
2729
git_commit_gpgsign: true
2830
git_config_global: true
31+
2932
- uses: actions/setup-java@v4
3033
with:
3134
distribution: temurin
3235
java-version: 17
33-
- uses: gradle/gradle-build-action@v3
34-
with:
35-
arguments: clean upgradeGradleWrapperAll --no-build-cache
36+
37+
- name: 'Setup Gradle'
38+
uses: gradle/actions/setup-gradle@v3
39+
40+
- name: 'Upgrade Gradle wrapper'
3641
env:
37-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
42+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
3843
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GH_BOT_GITHUB_TOKEN }}
44+
run: ./gradlew clean upgradeGradleWrapperAll --no-build-cache

0 commit comments

Comments
 (0)