Skip to content

Optimize include directives. #525

Optimize include directives.

Optimize include directives. #525

Workflow file for this run

name: Discord notification
# TODO: We will change this workflow later into a 'workflow_call' allowing us to send various notifications from other workflows easily
#
on:
push:
branches: '*'
jobs:
notify_discord_commits_pushed:
name: Notify discord (commits)
runs-on: ubuntu-latest
strategy:
# Only send commits one-by-one
max-parallel: 1
matrix:
commit: ${{ github.event.commits }}
env:
GHITHUB_USER_LINK: '[${{ matrix.commit.author.name }}](<https://github.com/${{ matrix.commit.author.name }}>)'
GHITHUB_REPO_URL: 'https://github.com/${{ github.event.repository.full_name }}'
GHITHUB_REPO_LINK: '[${{ github.event.repository.full_name }}](<https://github.com/${{ github.event.repository.full_name }}>)'
steps:
- name: Notify build started
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_YUKI }}
DISCORD_USERNAME: 'Yuki <IceShard Engine>'
with:
args: |
New commit in ${{ env.GHITHUB_REPO_LINK }} on branch [{{ ('${{ github.event.ref }}').split('/').pop() }}](<${{ env.GHITHUB_REPO_URL }}/tree/{{ ('${{ github.event.ref }}').split('/').pop() }}>)
-# See [changes](<${{ matrix.commit.url }}>) by ${{ env.GHITHUB_USER_LINK }} (sha: ${{ matrix.commit.id }})
>>> ${{ matrix.commit.message }}