mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 22:57:29 +02:00
Update build.yml
This commit is contained in:
parent
363e4f41da
commit
623be0c382
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -133,19 +133,3 @@ jobs:
|
|||||||
CUSTOM_TAG: ${{ env.VERSION_TAG }}
|
CUSTOM_TAG: ${{ env.VERSION_TAG }}
|
||||||
WITH_V: true
|
WITH_V: true
|
||||||
RELEASE_BRANCHES: master
|
RELEASE_BRANCHES: master
|
||||||
|
|
||||||
- name: "Set discord notification: success"
|
|
||||||
if: steps.version_check.outcome == 'success' && steps.version_check.conclusion == 'success'
|
|
||||||
run: |
|
|
||||||
TEMPLATE='[{"color": $color, "description": $desc}]'
|
|
||||||
DESC="__**Container Updated**__ \n**Container Name:** $GITHUB_REPOSITORY \n**Version:** ${{ env.VERSION_TAG }}\n**Build:** https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID$\n**Status:** Success \n**Change:** https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA \n"
|
|
||||||
echo "DISCORD_EMBEDS=$(jq -nc --arg color "1681177" --arg desc "$DESC" "$TEMPLATE")" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Discord notification
|
|
||||||
if: steps.version_check.outcome == 'success' && steps.version_check.conclusion == 'success'
|
|
||||||
env:
|
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_HOOK_URL }}
|
|
||||||
DISCORD_AVATAR: https://api.microlink.io/?url=https://twitter.com/github&embed=image.url
|
|
||||||
DISCORD_USERNAME: Github
|
|
||||||
uses: Ilshidur/action-discord@0.3.2
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user