()
| 13 | } |
| 14 | |
| 15 | export async function getRelease() { |
| 16 | try { |
| 17 | const result = await getOctokit().rest.repos.getReleaseByTag({ |
| 18 | ...github.context.repo, |
| 19 | tag, |
| 20 | }); |
| 21 | console.info('Found release:', tag); |
| 22 | return result.data; |
| 23 | } catch (err) { |
| 24 | if (err.status !== 404) throw err; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | function listCommits() { |
| 29 | const thisTag = exec('git describe --abbrev=0 --tags'); |
no test coverage detected