Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions build-gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ runs:
- name: Configure Gradle
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
with:
develocity-access-key: >-
${{ inputs.use-develocity == 'true' &&
fromJSON(steps.secrets.outputs.vault).DEVELOCITY_TOKEN || '' }}
develocity-injection-enabled: ${{ inputs.use-develocity == 'true' }}
# $GRADLE_USER_HOME is typically set to ~/.gradle/ by gradle/actions/setup-gradle
- name: Configure Gradle Authentication
Expand All @@ -100,6 +97,12 @@ runs:
mkdir -p "$GRADLE_INIT_DIR"
cp "${GITHUB_ACTION_PATH}/resources/repoxAuth.init.gradle.kts" "$GRADLE_INIT_DIR/"

- name: Extract Develocity hostname
id: develocity-hostname
if: ${{ inputs.use-develocity == 'true' }}
shell: bash
run: echo "hostname=$(echo '${{ inputs.develocity-url }}' | sed 's|https://||' | sed 's|/$||')" >> $GITHUB_OUTPUT

- name: Build, analyze and deploy
id: build
shell: bash
Expand Down Expand Up @@ -136,6 +139,8 @@ runs:
ORG_GRADLE_PROJECT_signingKey: ${{ fromJSON(steps.secrets.outputs.vault).SIGN_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ fromJSON(steps.secrets.outputs.vault).PGP_PASSPHRASE }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ fromJSON(steps.secrets.outputs.vault).SIGN_KEY_ID }}
DEVELOCITY_ACCESS_KEY: ${{ inputs.use-develocity == 'true' &&
format('{0}={1}', steps.develocity-hostname.outputs.hostname, fromJSON(steps.secrets.outputs.vault).DEVELOCITY_TOKEN) || '' }}
run: |
${GITHUB_ACTION_PATH}/build.sh

Expand Down