From 020474b25bb487447b5f9eaad761dafdcca89e2d Mon Sep 17 00:00:00 2001 From: Voronkov Alexander Date: Wed, 15 Jan 2025 10:46:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20workflow=20release-oci=20(#579)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-oci.yaml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release-oci.yaml b/.github/workflows/release-oci.yaml index 65124041..79e58549 100644 --- a/.github/workflows/release-oci.yaml +++ b/.github/workflows/release-oci.yaml @@ -15,6 +15,8 @@ jobs: deploy: runs-on: ubuntu-latest + run-name: "Publish Helm Charts for Tag ${{ inputs.tag }}${GITHUB_REF#refs/tags/} Event: ${{ github.event_name }} (Run #${{ github.run_number }})" + steps: # ШАГ 1. Узнаем, откуда пришел workflow (пуш тега или ручной запуск) - name: Determine if workflow is running from tag or input @@ -94,22 +96,3 @@ jobs: echo "Pushing chart: $chart -> ghcr.io/${{ github.repository_owner }}/charts" helm push $chart oci://ghcr.io/${{ github.repository_owner }}/charts done - - # ШАГ 8. Обновляем описание workflow - - name: Update Workflow Run Description - if: always() - run: | - RUN_ID=${{ github.run_id }} - RUN_NUMBER=${{ github.run_number }} - REPO=${{ github.repository }} - TAG_VERSION=${{ env.TAG_VERSION }} - EVENT=${{ github.event_name }} - STATUS=${{ job.status }} - - echo "Updating workflow run description with tag: $TAG and run number: $RUN_NUMBER" - - curl -X PATCH \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github+json" \ - https://api.github.com/repos/$REPO/actions/runs/$RUN_ID \ - -d "{\"name\":\"Publish Helm Charts #$RUN_NUMBER - $TAG_VERSION\",\"description\":\"Workflow status: $STATUS Deployed Helm charts for version $TAG_VERSION Event: $EVENT\"}"