From edd7dc9be9d96b384febf27d7f5923863dbd9131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC=20=D0=94=D1=80=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=BE=D0=B2?= Date: Wed, 15 Jan 2025 13:22:25 +0000 Subject: [PATCH] Fix-ci-for-cleanup --- .gitea/workflows/werf-yonote-cleanup-template.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/werf-yonote-cleanup-template.yml b/.gitea/workflows/werf-yonote-cleanup-template.yml index 17ac792..ad41a6a 100644 --- a/.gitea/workflows/werf-yonote-cleanup-template.yml +++ b/.gitea/workflows/werf-yonote-cleanup-template.yml @@ -14,10 +14,6 @@ on: default: false required: false type: boolean - commit_sha: - description: 'SHA текущего коммита' - required: true - type: string secrets: VAULT_ROLE_ID: required: true @@ -51,7 +47,7 @@ jobs: dev/wilix/yonote/data/ci/yonote NPM_AUTH_TOKEN ; - name: Set COMMIT_SHA in environment - run: echo "COMMIT_SHA=${{ inputs.commit_sha }}" >> "$GITHUB_ENV" + run: echo "COMMIT_SHA=${{ github.sha }}" >> "$GITHUB_ENV" - name: Login to wilix nexus Container Registry uses: https://github.com/docker/login-action@v2 @@ -73,4 +69,4 @@ jobs: WERF_REPO: ${{ inputs.docker_repo_path }}/${{ inputs.docker_images_path }} WERF_KUBECONFIG_BASE64: ${{ steps.import-secrets.outputs.local_cluster_kube_config_base64 }} NPM_AUTH_TOKEN: ${{ steps.import-secrets.outputs.NPM_AUTH_TOKEN }} - COMMIT_SHA: ${{ inputs.commit_sha }} + COMMIT_SHA: ${{ env "COMMIT_SHA" }}