Create deploy.yaml

This commit is contained in:
Mr Swift
2024-07-31 22:45:34 +03:30
parent 6e9655dcb9
commit 56c7ff692e
+42
View File
@@ -0,0 +1,42 @@
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": []
}'