-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 1 KB
/
NotifyOnStarred.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: NotifyOnStarred
on:
watch:
types: [started]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: SendNotification
env:
PUSHOVER_APP_TOKEN: ${{ secrets.PUSHOVER_APP_TOKEN }}
PUSHOVER_GROUP_TOKEN: ${{ secrets.PUSHOVER_GROUP_TOKEN }}
shell: pwsh
run: |
Import-Module ./joshooaj.PSPushover/joshooaj.PSPushover.psd1
$msg = @{
Message = 'Someone ⭐''d the repo 🎉'
Sound = 'magic'
Attachment = [io.file]::ReadAllBytes((Resolve-Path ./docs/assets/images/star.png))
FileName = 'star.png'
Url = 'https://github.com/joshooaj/PSPushover'
UrlTitle = 'github.com/joshooaj/PSPushover'
Token = $env:PUSHOVER_APP_TOKEN | ConvertTo-SecureString -AsPlainText -Force
User = $env:PUSHOVER_GROUP_TOKEN | ConvertTo-SecureString -AsPlainText -Force
}
Send-Pushover @msg