Skip to content

Commit a9d772a

Browse files
authored
Create clear-ghost-notifications.yml
1 parent 2b0c72f commit a9d772a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Clear notifications with GITHUB_TOKEN
2+
3+
on:
4+
workflow_dispatch: # start manually from the Actions tab
5+
6+
jobs:
7+
clear:
8+
runs-on: windows-latest
9+
steps:
10+
- name: Mark all notifications as read
11+
env:
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
run: |
14+
curl -X PUT ^
15+
-H "Accept: application/vnd.github+json" ^
16+
-H "Authorization: Bearer %GH_TOKEN%" ^
17+
https://api.github.com/notifications

0 commit comments

Comments
 (0)