Skip to content

Commit

Permalink
Исправление описания workflow release-oci
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voronkov committed Jan 15, 2025
1 parent 816fb0b commit 7409b6c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,19 @@ jobs:
# ШАГ 8. Обновляем описание workflow
- name: Update Workflow Run Description
if: always()
env:
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 }}
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\"}"
-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 7409b6c

Please sign in to comment.