[feature request] copy snippet to clipboard via button click directly from main page #170
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |