This commit is contained in:
charlesgauthereau
2026-03-06 17:06:00 +01:00
parent 0ebcf1729c
commit 5d2172f2bf
2 changed files with 9 additions and 9 deletions
+6 -5
View File
@@ -12,11 +12,12 @@ on:
discord_footer:
required: true
type: string
secrets:
DISCORD_WEBHOOK:
discord_webhook:
required: true
GH_TOKEN:
type: string
gh_token:
required: true
type: string
jobs:
notify-discord:
@@ -24,8 +25,8 @@ jobs:
steps:
- name: Send Discord Notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_WEBHOOK: ${{ inputs.discord_webhook }}
GH_TOKEN: ${{ inputs.gh_token }}
run: |
RELEASE_INFO=$(gh release view "${{ github.ref_name }}" -R ${{ github.repository }} --json name,url,body,author)
+3 -4
View File
@@ -66,7 +66,7 @@
# secrets:
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
name: Auto Release & Publish
@@ -136,6 +136,5 @@ jobs:
discord_title: "New Release: v${{ steps.bump.outputs.version }}"
discord_color: 3066993
discord_footer: "Portabase"
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
gh_token: ${{ secrets.GITHUB_TOKEN }}