An action that lets you upload files and send them as discord webhooks!
Example:
- name: Publish artifacts
uses: drtheodor/discord-webhook-upload-action@v0.4
with:
url: ${{ secrets.DEV_BUILDS }}
username: george washington
avatar: 'https://i.imgur.com/uiFqrQh.png'
message: |
<:new1:1253371736510959636><:new2:1253371805734015006> New <:al_ait:1393920126645960704> **Adventures in Time** (**AIT**) dev build [**`#${{ github.run_number }}`**](<https://github.com/amblelabs/ait/actions/runs/${{ github.run_id }}>):
${commits}
file: |
build/libs/*.jar
!build/libs/*-sources.jar(Example from Adventures in Time by AmbleLabs)
url: the webhook urlusername: usernameavatar: url to an image of the avatar (profile picture)message: the base messagefile: glob pattern for the files
You can use multiple placeholders:
${commits}- the commits (will usemsg_commitandmsg_commit_desc)
${message}- the commit message (a single line)
${commitMessage}- commit message${commitUrl}- link to the commit${authors}- the authors
${authorName}- the author of the commit${authorUrl}- link to the author's profile