Revert "test commit" #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: Push Commits to Discord Webhook | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
jobs: | |
Discord_Notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Use Node 12.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: Install NPM Dependencies (prod) | |
run: npm install --frozen-lockfile --production | |
- name: Discord Commits | |
uses: Sniddl/[email protected] | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
message: "Successful commit to **{{ github.context.payload.repository.owner.name }}/{{ github.context.payload.repository.name}}**.\nDiff: {{ github.context.payload.compare }}" | |
embed: '{ "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://github.com/{{ commit.author.username }}.png"} }' |