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 8d48cba commit 1bb5ff6
Showing 1 changed file with 4 additions and 34 deletions.
38 changes: 4 additions & 34 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create File
uses: actions/checkout@v2

- name: Generate JSON file
run: |
echo '{
"content": null,
"embeds": [
{
"title": "New Release 🧰",
"color": 6291288,
"fields": [
{
"name": "Commit ⚡",
"value": "Message » \"${{ github.event.head_commit.message }}\"\n\nCommit SHA » \"${{ github.sha }}\""
},
{
"name": "Workflow ☢️",
"value": "Branch » \"${{ github.ref }}\"\n\nWorkflow Runtime » \"${{ }}\""
},
{
"name": "Release 📦",
"value": "Download » \"${{ }}\""
}
],
"author": {
"name": "${{ github.actor }}"
},
"footer": {
"text": "[Main Repository 🔑](https://github.com/Hyphonic/Conquest)"
}
}
],
"attachments": []
}' > file.json
uses: devops-actions/json-to-file@v1.0.4
with:
json: '{"content":null,"embeds":[{"title":"New Release 🧰","color":6291288,"fields":[{"name":"Commit ⚡","value":"Message » `${{ github.event.head_commit.message }}`\n\nCommit SHA » `${{ github.sha }}`"},{"name":"Workflow ☢️","value":"Branch » `${{ github.ref.name }}`\n\nWorkflow Runtime » `${{ }}`"},{"name":"Release 📦","value":"Download » `${{ }}`"}],"author":{"name":"${{ github.actor.login }}"},"footer":{"text":"[Main Repository 🔑](https://github.com/Hyphonic/Conquest)"}}],"attachments":[]}'
filename: file.json

send-webhook:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1bb5ff6

Please sign in to comment.