From bd5cfa10ad64fa5d4efceac20e350c0726c01a7d Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 3 Sep 2025 18:00:52 -0500 Subject: [PATCH] ci: Fix notification workflow round 3 --- .../workflows/notify-unreleased-commits.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/notify-unreleased-commits.yml b/.github/workflows/notify-unreleased-commits.yml index 521eb8c3..35bf91ec 100644 --- a/.github/workflows/notify-unreleased-commits.yml +++ b/.github/workflows/notify-unreleased-commits.yml @@ -14,21 +14,17 @@ jobs: - name: List Commits id: list-commits run: | - SUMMARY="$(./scripts/list-unreleased-commits.sh)" - echo "summary<> $GITHUB_OUTPUT - echo "$SUMMARY" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT + ./scripts/list-unreleased-commits.sh > summary.txt - name: Discord notification - uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 + run: | + curl -X POST \ + -F "payload_json={\"content\": \"${{ env.MESSAGE }}\"}" \ + -F "file1=@summary.txt" \ + $DISCORD_WEBHOOK env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_UNRELEASED_COMMITS }} - with: - args: | - ``` - ${{ steps.list-commits.outputs.summary }} - ``` - + MESSAGE: | If a package needs released, please [run the workflow](https://github.com/wxt-dev/wxt/actions/workflows/release.yml). Before running, consider: