Compare commits
	
		
			No commits in common. "3f0e9dd9082590e3450866981b92220391b93dc3" and "65beb47d43469cb94cd6ea8215f0e8deb77d0196" have entirely different histories.
		
	
	
		
			3f0e9dd908
			...
			65beb47d43
		
	
		
| @ -1,25 +0,0 @@ | |||||||
| { |  | ||||||
|     "type": "AdaptiveCard", |  | ||||||
|     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", |  | ||||||
|     "version": "1.6", |  | ||||||
|     "body": [ |  | ||||||
|         { |  | ||||||
|             "type": "TextBlock", |  | ||||||
|             "text": "Publish Adaptive Card Schema", |  | ||||||
|             "wrap": true, |  | ||||||
|             "style": "heading" |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|             "type": "TextBlock", |  | ||||||
|             "text": "Tag: 1.0.0", |  | ||||||
|             "wrap": true |  | ||||||
|         } |  | ||||||
|     ], |  | ||||||
|     "actions": [ |  | ||||||
|         { |  | ||||||
|             "type": "Action.OpenUrl", |  | ||||||
|             "title": "View release", |  | ||||||
|             "url": "https://google.com" |  | ||||||
|         } |  | ||||||
|     ] |  | ||||||
| } |  | ||||||
| @ -41,12 +41,6 @@ type Args struct { | |||||||
| 	FetchGitTags      bool   `envconfig:"PLUGIN_FETCH_GIT_TAGS" default:"true"` | 	FetchGitTags      bool   `envconfig:"PLUGIN_FETCH_GIT_TAGS" default:"true"` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type ReleaseCard struct { |  | ||||||
| 	Title string |  | ||||||
| 	Tag   string |  | ||||||
| 	Url   string |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type TitleTemplateCtx struct { | type TitleTemplateCtx struct { | ||||||
| 	Tag          string | 	Tag          string | ||||||
| 	GiteaUrl     string | 	GiteaUrl     string | ||||||
| @ -162,15 +156,5 @@ func Exec(ctx context.Context, args Args) error { | |||||||
| 	releaseURL := fmt.Sprintf("%s/%s/%s/releases/tag/%s", args.GiteaUrl, args.Owner, args.Repo, release.TagName) | 	releaseURL := fmt.Sprintf("%s/%s/%s/releases/tag/%s", args.GiteaUrl, args.Owner, args.Repo, release.TagName) | ||||||
| 	fmt.Printf("Successfully created release at %s", releaseURL) | 	fmt.Printf("Successfully created release at %s", releaseURL) | ||||||
| 
 | 
 | ||||||
| 	writeCard( |  | ||||||
| 		args.Pipeline.Card.Path, |  | ||||||
| 		"https://gitea.dikurium.ch/InnoPeak/drone-gitea-release/raw/branch/main/card.json", |  | ||||||
| 		ReleaseCard{ |  | ||||||
| 			Title: title, |  | ||||||
| 			Tag:   tag, |  | ||||||
| 			Url:   releaseURL, |  | ||||||
| 		}, |  | ||||||
| 	) |  | ||||||
| 
 |  | ||||||
| 	return err | 	return err | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user