-
Notifications
You must be signed in to change notification settings - Fork 22
59 lines (57 loc) · 1.82 KB
/
notify.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Notify
on:
issues:
types:
opened
pull_request_target:
types:
- closed
jobs:
notify-issue:
if: ${{ github.event_name == 'issues' }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: snow-actions/[email protected]
with:
relays: ${{ vars.NOSTR_RELAYS }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY }}
content: |
Issue by @${{ github.event.sender.login }}: ${{ github.event.issue.title }}
${{ github.event.issue.html_url }} #nostter
tags: |
- ["t", "nostter"]
- ["proxy", "${{ github.event.issue.html_url }}", "web"]
notify-pr:
if: ${{ github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: snow-actions/[email protected]
with:
relays: ${{ vars.NOSTR_RELAYS }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY }}
content: |
PR merged: ${{ github.event.pull_request.title }}
${{ github.event.pull_request.html_url }} #nostter
tags: |
- ["t", "nostter"]
- ["proxy", "${{ github.event.pull_request.html_url }}", "web"]
user-status:
if: ${{ github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "expiration=$(date +%s --date '12 hours')" >> $GITHUB_ENV
- uses: snow-actions/[email protected]
with:
relays: ${{ vars.NOSTR_RELAYS }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY }}
kind: 30315
content: |
#nostter ${{ github.event.pull_request.title }}
tags: |
- ["d", "general"]
- ["t", "nostter"]
- ["r", "https://nostter.app/"]
- ["expiration", "${{ env.expiration }}"]