Skip to content

Commit

Permalink
Инвормативное описание workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voronkov committed Jan 15, 2025
1 parent d5a2828 commit fb94a95
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,22 @@ 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 fb94a95

Please sign in to comment.