Skip to content

Commit

Permalink
Update discord.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyphonic authored Dec 14, 2024
1 parent f95ed58 commit be83098
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
file_url="https://example.com/direct-download-url"
size=$(curl -sI $file_url | grep -i Content-Length | awk '{print $2}')
echo "size=$size" >> $GITHUB_ENV
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v2
- name: Discord Webhook Action
uses: tsickert/discord-webhook@v6.0.0
Expand All @@ -24,14 +28,15 @@ jobs:
embed-title: "New Release 🔔"
embed-author-name: by ${{ github.actor }}
embed-author-url: https://github.com/Hyphonic/Conquest
embed-color: 3535423
embed-description: |
### Commit ⚡
Message » `${{ github.event.head_commit.message }}`
Commit SHA » `${{ github.sha }}`
Commit Author » `${{ github.event.head_commit.author.name }}`
### Workflow ☢️
Runtime (minutes) » `${{ github.event.workflow_run.run_duration_ms / 60000 }}`
Runner OS » `${{ runner.os }}`
Branch » `${{ steps.extract_branch.outputs.branch }}`
### Release 📦
Download » `https://github.com/${{ github.repository }}/releases/latest/download/Conquest.zip`
Size » `${{ env.size }}`
Expand Down

0 comments on commit be83098

Please sign in to comment.