File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import * as tc from '@actions/tool-cache'
88import { Buffer } from 'buffer'
99import { Octokit } from '@octokit/rest'
1010import toml from 'toml'
11+
1112const RELEASE_BOT_WEBHOOK_URL = 'https://spin-plugin-releaser.fermyon.app'
1213
1314interface MustacheView {
@@ -49,7 +50,6 @@ async function run(): Promise<void> {
4950 repo : github . context . repo . repo
5051 } )
5152
52- core . info ( JSON . stringify ( allReleases ) )
5353 const release = allReleases . data . find ( item => item . tag_name === tagName )
5454 if ( ! release ) {
5555 throw new Error ( `no release found with tag ${ tagName } ` )
@@ -173,11 +173,10 @@ function getReleaseTagName(): string {
173173function getVersion ( tagName : string ) : string {
174174 if ( tagName === 'canary' ) {
175175 const cargoToml = toml . parse ( fs . readFileSync ( 'Cargo.toml' , 'utf-8' ) )
176- core . info ( `${ cargoToml . package . version } post.${ getEpochTime ( ) } ` )
177176 return `${ cargoToml . package . version } post.${ getEpochTime ( ) } `
178177 }
179178
180- return tagName
179+ return tagName . replace ( / ^ v / , '' )
181180}
182181
183182function getEpochTime ( ) : number {
You can’t perform that action at this time.
0 commit comments