Skip to content

Commit

Permalink
chore: test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
khcrysalis committed Sep 26, 2024
1 parent 023d3c6 commit 3c069a6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,45 @@ jobs:
VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Payload/feather.app/Info.plist)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Send Discord build message
run: |
COMMIT_HASH=$(git log -1 --pretty=format:'%h') &&
COMMIT_MESSAGE=$(git log -1 --pretty=format:'%s') &&
(
curl "${{ secrets.B_WEBHOOK }}" -sS -H "Content-Type:application/json" -X POST -d '{
"content":null,
"embeds":[
{
"title":"${{ github.repository }} [Build ${{ github.run_number }}]",
"description":"[`'"$COMMIT_HASH"'`](https://github.com/${{ github.repository }}/commit/'"$COMMIT_HASH"') '"$COMMIT_MESSAGE"'",
"url":"https://github.com/${{ github.repository }}/actions/runs/${GITHUB_RUN_ID}",
"color":6648790,
"author":{
"name":"${{ github.actor }}",
"icon_url":"https://github.com/${{ github.actor }}.png"
}
}
],
"attachments":[],
"components":[
{
"type":1,
"components":[
{
"type":2,
"url":"https://google.com",
"label":"Download",
"style":5
}
]
}
]
}')
)

0 comments on commit 3c069a6

Please sign in to comment.