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: discord_footer:
required: true required: true
type: string type: string
secrets: discord_webhook:
DISCORD_WEBHOOK:
required: true required: true
GH_TOKEN: type: string
gh_token:
required: true required: true
type: string
jobs: jobs:
notify-discord: notify-discord:
@@ -24,8 +25,8 @@ jobs:
steps: steps:
- name: Send Discord Notification - name: Send Discord Notification
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ inputs.discord_webhook }}
GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ inputs.gh_token }}
run: | run: |
RELEASE_INFO=$(gh release view "${{ github.ref_name }}" -R ${{ github.repository }} --json name,url,body,author) 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: # secrets:
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} # DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
name: Auto Release & Publish name: Auto Release & Publish
@@ -136,6 +136,5 @@ jobs:
discord_title: "New Release: v${{ steps.bump.outputs.version }}" discord_title: "New Release: v${{ steps.bump.outputs.version }}"
discord_color: 3066993 discord_color: 3066993
discord_footer: "Portabase" discord_footer: "Portabase"
secrets: discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} gh_token: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}