43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
name: Deploy Checker
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
deployment:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up environment
|
|
run: |
|
|
echo "COMMIT_MESSAGE=$(echo '${{ github.event.head_commit.message }}' | jq -aRs .)" >> $GITHUB_ENV
|
|
|
|
- name: Deploy Stage
|
|
uses: fjogeleit/http-request-action@v1
|
|
with:
|
|
url: 'https://canary.discord.com/api/webhooks/1266738294226554953/xLG8rouRFIAJJGSgroDyjorzkh1vxn6b2QqlLM44Y1rONt8F0rGkAB5v5VKY1h_znQW6'
|
|
method: 'POST'
|
|
customHeaders: '{"Content-Type": "application/json"}'
|
|
data: '{
|
|
"content": " Github push ${{ github.repository }} / ${{ github.event.head_commit.timestamp }} / ${{github.event.head_commit.author.name}}",
|
|
"embeds": [
|
|
{
|
|
"title": "${{ github.repository }}",
|
|
"description": "Git checker",
|
|
"url": "http://github.com/${{ github.repository }}",
|
|
"color": 5814783,
|
|
"fields": [
|
|
{
|
|
"name": "${{github.event.head_commit.author.name}}",
|
|
"value": ${{ env.COMMIT_MESSAGE }}
|
|
}
|
|
],
|
|
"author": {
|
|
"name": "${{ github.actor }}"
|
|
},
|
|
"timestamp": "${{ github.event.head_commit.timestamp }}"
|
|
}
|
|
],
|
|
"username": "${{github.event.head_commit.author.name}}",
|
|
"attachments": []
|
|
}'
|