Skip to content

[feature request] copy snippet to clipboard via button click directly from main page #170

[feature request] copy snippet to clipboard via button click directly from main page

[feature request] copy snippet to clipboard via button click directly from main page #170

Workflow file for this run

name: Custom Notifications
on:
schedule:
- cron: '30 15 * * 6' # 3:30 pm UTC every saturday
issues:
types: [opened, edited, deleted, closed]
issue_comment:
types: [created]
workflow_run:
workflows: ["Docker Publish", "Build Binary"]
types: [completed]
pull_request_target:
types: [opened, closed, edited, review_requested]
jobs:
issue-comment-notification:
if: github.event_name == 'issues' || github.event_name == 'issue_comment'
runs-on: ubuntu-latest
steps:
- name: Notify on Issue or Comment
if: github.actor != 'Tanq16'
run: |
curl -H "Content-Type: application/json" -X POST \
-d "{\"content\": \"*New issue/comment from **${{ github.actor }}***\n${{ github.event.issue.html_url }}\"}" ${{ secrets.DISCORD_WEBHOOK }}
build-status-notification:
if: github.event_name == 'workflow_run'
runs-on: ubuntu-latest
steps:
- name: Notify on Build Status
run: |
curl -H "Content-Type: application/json" -X POST \
-d "{\"content\": \"*Workflow run for **${{ github.repository }}***\n${{ github.event.workflow_run.name }} - ${{ github.event.workflow_run.conclusion }}\"}" ${{ secrets.DISCORD_WEBHOOK }}
pull-request-notification:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- name: Notify on PR related activities
if: github.actor != 'Tanq16'
run: |
curl -H "Content-Type: application/json" -X POST \
-d "{\"content\": \"*New PR activity from **${{ github.actor }}***\n${{ github.event.pull_request.html_url }}\"}" ${{ secrets.DISCORD_WEBHOOK }}