This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch develocity
in repository https://gitbox.apache.org/repos/asf/logging-parent.git


The following commit(s) were added to refs/heads/develocity by this push:
     new 7c8484b  Fix access token test
7c8484b is described below

commit 7c8484b48669de074735d6b007bd1dffb085dc02
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Tue Jun 11 11:15:41 2024 +0200

    Fix access token test
---
 .github/workflows/deploy-site-reusable.yaml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/deploy-site-reusable.yaml 
b/.github/workflows/deploy-site-reusable.yaml
index fb3cda6..b6de272 100644
--- a/.github/workflows/deploy-site-reusable.yaml
+++ b/.github/workflows/deploy-site-reusable.yaml
@@ -69,9 +69,12 @@ jobs:
 
       - name: Disable Develocity
         shell: bash
-        if: ${{ ! secrets.GE_ACCESS_TOKEN }}
+        env:
+          GE_ACCESS_TOKEN: ${{ secrets.GE_ACCESS_TOKEN }}
         run: |
-          rm -f .mvn/extensions.xml
+          if [ -z "$GE_ACCESS_TOKEN" ]; then
+            rm -f .mvn/extensions.xml
+          fi
 
       - name: Build the project
         shell: bash

Reply via email to