Fix doc snippet

This commit is contained in:
Alexis Tual 2024-05-15 18:47:44 +02:00 committed by daz
parent 9a00459304
commit d4bf14211a
No known key found for this signature in database

View File

@ -732,6 +732,8 @@ In the likely scenario that your Develocity server requires authentication, you
```yaml ```yaml
- name: Setup Gradle - name: Setup Gradle
uses: gradle/actions/setup-gradle@v3 uses: gradle/actions/setup-gradle@v3
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
- name: Run a Gradle build with Develocity injection enabled - name: Run a Gradle build with Develocity injection enabled
run: ./gradlew build run: ./gradlew build
@ -739,8 +741,6 @@ In the likely scenario that your Develocity server requires authentication, you
DEVELOCITY_INJECTION_ENABLED: true DEVELOCITY_INJECTION_ENABLED: true
DEVELOCITY_URL: https://develocity.your-server.com DEVELOCITY_URL: https://develocity.your-server.com
DEVELOCITY_PLUGIN_VERSION: 3.17 DEVELOCITY_PLUGIN_VERSION: 3.17
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
``` ```
This access key will be used during the action execution to get a short-lived token and set it to the DEVELOCITY_ACCESS_KEY environment variable. This access key will be used during the action execution to get a short-lived token and set it to the DEVELOCITY_ACCESS_KEY environment variable.