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

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 5d6a60b8d28a Improve GitHub Actions workflow: install python before 
poetry
5d6a60b8d28a is described below

commit 5d6a60b8d28aaf3054c2dc1ce710d370987e0c49
Author: Lari Hotari <[email protected]>
AuthorDate: Thu Oct 24 14:25:48 2024 +0300

    Improve GitHub Actions workflow: install python before poetry
---
 .github/actions/sync-content/action.yml | 18 ++++++++----------
 .github/workflows/ci-precommit.yml      |  4 ++--
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/.github/actions/sync-content/action.yml 
b/.github/actions/sync-content/action.yml
index 9e27dfd2fa54..bb38e53da5a2 100644
--- a/.github/actions/sync-content/action.yml
+++ b/.github/actions/sync-content/action.yml
@@ -20,20 +20,19 @@ description: Synchronize website content from the main repo
 runs:
   using: composite
   steps:
-    - name: Install poetry
-      run: pipx install poetry
-      shell: bash
-    - uses: actions/setup-python@v4
-      with:
-        python-version: '3.12'
-        cache: 'poetry'
-
     - uses: actions/checkout@v4
       with:
         repository: apache/pulsar
         path: tmp/pulsar
+    - uses: actions/setup-python@v5
+      with:
+        python-version: '3.12'
+        cache: 'poetry'
+    - name: Install poetry
+      run: pipx install poetry
+      shell: bash
     - name: Cache local Maven repository
-      uses: actions/cache@v3
+      uses: actions/cache@v4
       with:
         path: |
           ~/.m2/repository/*/*/*
@@ -54,7 +53,6 @@ runs:
         MAVEN_OPTS: -Xss1500k -Xmx1500m 
-Daether.connector.http.reuseConnections=false 
-Daether.connector.requestTimeout=60000 -Dhttp.keepAlive=false 
-Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3 
-Dmaven.wagon.http.retryHandler.requestSentEnabled=true 
-Dmaven.wagon.http.serviceUnavailableRetryStrategy.class=standard 
-Dmaven.wagon.rto=60000
       run: mvn -B -ntp install -Pcore-modules,swagger,-main -DskipTests 
-DskipSourceReleaseAssembly=true -Dspotbugs.skip=true -Dlicense.skip=true
       shell: bash
-
     - name: Update generated docs
       working-directory: tools/pytools
       run: |
diff --git a/.github/workflows/ci-precommit.yml 
b/.github/workflows/ci-precommit.yml
index f29f5a5133d0..6b2d440e850e 100644
--- a/.github/workflows/ci-precommit.yml
+++ b/.github/workflows/ci-precommit.yml
@@ -49,12 +49,12 @@ jobs:
         with:
           ref: 'asf-site-next'
           path: tmp/asf-site-next
-      - name: Install poetry
-        run: pipx install poetry
       - uses: actions/setup-python@v5
         with:
           python-version: '3.12'
           cache: 'poetry'
+      - name: Install poetry
+        run: pipx install poetry
       - name: Set Node.js 20
         uses: actions/setup-node@v4
         with:

Reply via email to