Skip to content

Instantly share code, notes, and snippets.

View olliephillips's full-sized avatar

Ollie Phillips olliephillips

  • UK
View GitHub Profile
@olliephillips
olliephillips / gist:5a394dfd9a5dc3266279f48a8d68a2ea
Created December 7, 2022 11:28
Screenshot in Go with Chrome Headless
package main
import (
"context"
"log"
"time"
"github.com/chromedp/chromedp"
)
- webhook:
description: Task finished notification which reports status
url: https://hooks.slack.com/services/T03XXXBXXQ/B03MXXXXJVC/3FGjXXXXXXXXmUTca
method: POST
requestBody: |
{
"text":"Task: '{{.TaskName}}' created by '{{.CreatedBy}}' has completed with status: '{{.Status}}'. Happy Days!"
}
token:
triggers: