We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0c72f commit a9d772aCopy full SHA for a9d772a
.github/workflows/clear-ghost-notifications.yml
@@ -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