Skip to content

Commit

Permalink
Исправление описания workflow release-oci (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-a-v authored Jan 15, 2025
1 parent 816fb0b commit 020474b
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/release-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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\"}"

0 comments on commit 020474b

Please sign in to comment.