Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(ci): inline Discord notify into auto-tag-release
Generc7610d092412
diff --git a/.github/workflows/auto-tag-release.yml b/.github/workflows/auto-tag-release.ymlindex e2076dafd..b92e4b4ce 100644--- a/.github/workflows/auto-tag-release.yml+++ b/.github/workflows/auto-tag-release.yml@@ -51,6 +51,43 @@ jobs:- name: Create GitHub Releaseif: steps.check.outputs.exists == 'false'+ id: releaseenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes --title "${{ steps.version.outputs.tag }}"+ run: |+ gh release create "${{ steps.version.outputs.tag }}" --generate-notes --title "${{ steps.version.outputs.tag }}"+ RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/${{ steps.version.outputs.tag }}"+ BODY=$(gh release view "${{ steps.version.outputs.tag }}" --json body -q .body)+ echo "url=$RELEASE_URL" >> "$GITHUB_OUTPUT"+ echo "body<<EOF" >> "$GITHUB_OUTPUT"+ echo "$BODY" >> "$GITHUB_OUTPUT"+ echo "EOF" >> "$GITHUB_OUTPUT"++ - name: Notify Discord+ if: steps.check.outputs.exists == 'false'+ env:+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}+ VERSION: ${{ steps.version.outputs.tag }}+ BODY: ${{ steps.release.outputs.body }}+ RELEASE_URL: ${{ steps.release.outputs.url }}+ run: |+ PAYLOAD=$(python3 -c "+ import json, os+ version = os.environ['VERSION']+ body = os.environ.get('BODY', '')[:4096] or 'No changelog available'+ release_url = os.environ['RELEASE_URL']+ desc = f'{body}\n\n[View Release]({release_url})'+ if len(desc) > 4096:+ desc = desc[:4093] + '...'+ payload = {+ 'embeds': [{+ 'title': f'\U0001f680 Alook {version} Released',+ 'description': desc,+ 'color': 3066993,+ 'url': release_url,+ 'footer': {'text': 'Alook CI/CD'},+ }]+ }+ print(json.dumps(payload))+ ")+ curl -sf -H "Content-Type: application/json" -d "$PAYLOAD" "$DISCORD_WEBHOOK"diff --git a/.github/workflows/discord-notify.yml b/.github/workflows/discord-notify.ymldeleted file mode 100644index 1054665e2..000000000--- a/.github/workflows/discord-notify.yml+++ /dev/null@@ -1,39 +0,0 @@-name: Discord Notify--on:- release:- types: [published]--jobs:- notify-release:- name: Notify Discord on release- runs-on: ubuntu-latest- timeout-minutes: 2- steps:- - name: Send release notification- env:- DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}- VERSION: ${{ github.event.release.tag_name }}- BODY: ${{ github.event.release.body }}- RELEASE_URL: ${{ github.event.release.html_url }}- run: |- PAYLOAD=$(python3 -c "- import json, os- version = os.environ['VERSION']- body = os.environ.get('BODY', '')[:4096] or 'No changelog available'- release_url = os.environ['RELEASE_URL']- desc = f'{body}\n\n[View Release]({release_url})'- if len(desc) > 4096:- desc = desc[:4093] + '...'- payload = {- 'embeds': [{- 'title': f'\U0001f680 Alook {version} Released',- 'description': desc,- 'color': 3066993,- 'url': release_url,- 'footer': {'text': 'Alook CI/CD'},- }]- }- print(json.dumps(payload))- ")- curl -sf -H "Content-Type: application/json" -d "$PAYLOAD" "$DISCORD_WEBHOOK"