Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Информативное описание workflow GHA #578

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\"}"
Loading