Skip to content

Commit

Permalink
ci: Add NotifyOnStarred demo
Browse files Browse the repository at this point in the history
  • Loading branch information
joshooaj committed Mar 20, 2024
1 parent 2e8154b commit 0eca89e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/NotifyOnStarred.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 = @{
Title = 'New Star!'
Message = 'Someone starred the repository!'
Token = $env:PUSHOVER_APP_TOKEN | ConvertTo-SecureString -AsPlainText -Force
User = $env:PUSHOVER_GROUP_TOKEN | ConvertTo-SecureString -AsPlainText -Force
}
Send-Pushover @msg

0 comments on commit 0eca89e

Please sign in to comment.