Skip to content

Send discord notification #159

Send discord notification

Send discord notification #159

name: Send discord notification
on:
workflow_dispatch:
inputs:
filename:
description: "Filename"
type: string
required: true
status:
description: "Status"
type: string
required: true
permissions:
contents: read
actions: write
defaults:
run:
shell: bash
jobs:
StatusChangeNotifications:
runs-on: improvement-proposals-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD }}
uses: step-security/action-discord@a67f622d551a2f5fcc316c78e0076fe665ff6637 # v0.1.0
with:
args: "${{ github.event.inputs.filename }} moved into ${{ github.event.inputs.status }} status https://hips.hedera.com/hip/${{ github.event.inputs.filename }}"