Skip to content

Commit 1076b0e

Browse files
committed
Updated workflow to send commit messages to webhook.
1 parent 230e215 commit 1076b0e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/rust.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Install Rust nightly
20-
# run: rustup override set nightly
2120
uses: actions-rs/toolchain@v1
2221
with:
2322
toolchain: nightly
@@ -54,4 +53,15 @@ jobs:
5453
uses: actions/upload-artifact@v4
5554
with:
5655
name: ferrumc
57-
path: target/release/ferrumc
56+
path: target/release/ferrumc
57+
58+
- name: Send message to Discord
59+
env:
60+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
61+
uses: Ilshidur/action-discord@master
62+
with:
63+
args: 'New commit pushed to {{ EVENT_PAYLOAD.repository.full_name }}
64+
65+
Commit message: {{ EVENT_PAYLOAD.head_commit.message }}
66+
Author: {{ EVENT_PAYLOAD.head_commit.author.name }}
67+
Link: {{ EVENT_PAYLOAD.head_commit.url }}'

0 commit comments

Comments
 (0)