Skip to content

Commit

Permalink
ci: Create issue if failed to release
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 18, 2024
1 parent 8c6aa7c commit f091371
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,16 @@ jobs:
tag_name: ${{ needs.meta.outputs.tag }}
prerelease: ${{ needs.meta.outputs.is_pre_release == 'true' }}

- name: Create issue if failed to publish packages
if: steps.nuget.outputs.failed || steps.pip.outputs.failed
- name: Create issue if failed to release
if: failure() || steps.nuget.outputs.failed || steps.pip.outputs.failed || ${{ steps.nodejs.outputs.id == 'undefined' }}
uses: actions-cool/issues-helper@v3
with:
actions: "create-issue"
title: "${{ needs.meta.outputs.tag }} failed to publish packages"
title: "${{ needs.meta.outputs.tag }} failed to release"
body: |
Please manually publish the following packages:
${{ steps.nuget.outputs.failed && '- nuget @moomiji' || '' }}
${{ steps.pip.outputs.failed && '- pip @MistEO' || '' }}
${{ steps.nodejs.outputs.id == 'undefined' && '- nodejs @neko-para' || '' }}
cc @MistEO

0 comments on commit f091371

Please sign in to comment.