Skip to content

Commit

Permalink
Merge pull request #79 from theBeginner86/thebeginner86/chore/5
Browse files Browse the repository at this point in the history
[debug] Trigger Workflow
  • Loading branch information
theBeginner86 authored Dec 25, 2024
2 parents ec1af73 + da39ba0 commit 89678c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/kanvas-snapshot/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ func CreateMesheryDesign(uri, name, email string) (string, error) {

func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) error {
payload := fmt.Sprintf(`{"ref":"master","inputs":{"contentID":"%s","assetLocation":"%s"}}`, contentID, assetLocation)
req, err := http.NewRequest("POST", "https://api.github.com/repos/meshery/meshery.io/actions/workflows/kanvas.yml/dispatches", bytes.NewBuffer([]byte(payload)))
fmt.Println("check for access token", len(ghAccessToken))
req, err := http.NewRequest("POST", "https://api.github.com/repos/thebeginner86/my-yamls/actions/workflows/kanvas.yml/dispatches", bytes.NewBuffer([]byte(payload)))
fmt.Println(err)
if err != nil {
return err
Expand Down

0 comments on commit 89678c2

Please sign in to comment.