Compare commits
2 Commits
d37726fcc9
...
95beb54b32
| Author | SHA1 | Date | |
|---|---|---|---|
| 95beb54b32 | |||
| b6a8d96585 |
@@ -20,13 +20,12 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
secrets:
|
|
||||||
NTFY_CHANNEL:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
send-notification:
|
send-notification:
|
||||||
runs-on: [home-server]
|
runs-on: [home-server]
|
||||||
|
env:
|
||||||
|
NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Send ntfy notification
|
- name: Send ntfy notification
|
||||||
working-directory: /home/gitea-runner
|
working-directory: /home/gitea-runner
|
||||||
@@ -38,7 +37,7 @@ jobs:
|
|||||||
-H "Tags: ${{ inputs.tags }}" \
|
-H "Tags: ${{ inputs.tags }}" \
|
||||||
-H "Actions: view, View Logs, ${{ inputs.action_url }}" \
|
-H "Actions: view, View Logs, ${{ inputs.action_url }}" \
|
||||||
--data-binary "@-" \
|
--data-binary "@-" \
|
||||||
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
|
"https://ntfy.sh/$NTFY_CHANNEL"
|
||||||
${{ inputs.message }}
|
${{ inputs.message }}
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
@@ -46,7 +45,7 @@ jobs:
|
|||||||
-H "Priority: ${{ inputs.priority }}" \
|
-H "Priority: ${{ inputs.priority }}" \
|
||||||
-H "Tags: ${{ inputs.tags }}" \
|
-H "Tags: ${{ inputs.tags }}" \
|
||||||
--data-binary "@-" \
|
--data-binary "@-" \
|
||||||
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
|
"https://ntfy.sh/$NTFY_CHANNEL"
|
||||||
${{ inputs.message }}
|
${{ inputs.message }}
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user