From c520e14a19eba61513fd9abd3b9cb4ec23c8462b Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 17 Jul 2026 12:55:34 +0000 Subject: [PATCH] Fix deploy tmp paths: drop unset gitea.run_attempt. act_runner v0.2.x does not expose gitea.run_attempt, so release archive and workspace paths rendered with a trailing dash. Use gitea.run_id only, matching the Meet/CRM deploy workflows. --- .gitea/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8b87590..1402da0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,8 +19,9 @@ jobs: env: NODE_ROOT: /tmp/ladill-node-22-r1 NODE_VERSION: "22.14.0" - RELEASE_ARCHIVE: /tmp/ladill-pos-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz - WORKSPACE: /tmp/${{ gitea.repository_owner }}-pos-${{ gitea.run_id }}-${{ gitea.run_attempt }} + # act_runner v0.2.x does not expose gitea.run_attempt — use run_id only. + RELEASE_ARCHIVE: /tmp/ladill-pos-release-${{ gitea.run_id }}.tgz + WORKSPACE: /tmp/${{ gitea.repository_owner }}-pos-${{ gitea.run_id }} LADILL_APP_ROOT: /var/www/ladill-pos steps: - name: Guard deploy target @@ -96,7 +97,7 @@ jobs: - name: Deploy release shell: bash {0} env: - LADILL_RELEASE_ARCHIVE: /tmp/ladill-pos-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz + LADILL_RELEASE_ARCHIVE: /tmp/ladill-pos-release-${{ gitea.run_id }}.tgz run: | set -Eeuo pipefail : "${LADILL_APP_ROOT:?Set LADILL_APP_ROOT}"