Skip to content

Clear notifications (bash) #3

Clear notifications (bash)

Clear notifications (bash) #3

name: Clear notifications (bash)
on:
workflow_dispatch: # run manually from the Actions UI
jobs:
clear:
runs-on: ubuntu-latest
steps:
- name: Mark all notifications as read
env:
GH_TOKEN: ${{ secrets.GHUB_TOKEN }}
run: |
curl -X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GH_TOKEN" \
https://api.github.com/notifications