update #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: discord message | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# - uses: actions/checkout@v4 | |
# - name: send custom message with args | |
# uses: ./ | |
# with: | |
# webhook_id: ${{ secrets.WEBHOOK_ID }} | |
# webhook_token: ${{ secrets.WEBHOOK_TOKEN }} | |
# args: The ${{ github.event_name }} event triggered first step. | |
# - name: send default message | |
# uses: ./ | |
# with: | |
# webhook_id: ${{ secrets.WEBHOOK_ID }} | |
# webhook_token: ${{ secrets.WEBHOOK_TOKEN }} | |
- name: send color message with custom username | |
uses: ./ | |
with: | |
webhook_id: ${{ secrets.WEBHOOK_ID }} | |
webhook_token: ${{ secrets.WEBHOOK_TOKEN }} | |
color: "#48f442" | |
username: "GitHub Bot" | |
message: "A new commit has been pushed with custom color." | |
- name: send file message | |
uses: ./ | |
with: | |
webhook_id: ${{ secrets.WEBHOOK_ID }} | |
webhook_token: ${{ secrets.WEBHOOK_TOKEN }} | |
file: "./images/message.png" | |
message: "Send Multiple File." |