1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-09 15:21:13 +02:00

chore: fiddling with configuration

This commit is contained in:
bcoe
2020-05-09 15:05:14 -07:00
parent a7c910aebd
commit 9ae523dc91
2 changed files with 10 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ on:
- master
name: coverage
jobs:
coveralls:
update-pr:
runs-on: ubuntu-latest
steps:
- uses: bcoe/release-please-action@master

View File

@@ -10,24 +10,16 @@ async function main () {
const releaseType = core.getInput('release-type')
const name = core.getInput('name')
switch (action) {
case 'update-pr': {
const release = ReleasePRFactory.build(releaseType, {
packageName: name || 'unknown',
apiUrl: 'https://api.github.com',
repoUrl: process.env.GITHUB_REPOSITORY,
token: token,
label: RELEASE_LABEL
})
await release.run()
break
}
default:
core.setFailed(`unknown action, ${action}, should be "update-pr", or "create-release".`)
break
}
const release = ReleasePRFactory.build(releaseType, {
packageName: name || 'unknown',
apiUrl: 'https://api.github.com',
repoUrl: process.env.GITHUB_REPOSITORY,
token: token,
label: RELEASE_LABEL
})
await release.run()
}
main().catch(err => {
core.setFailed(`release-please failed to ${action} (${err.message})`)
core.setFailed(`release-please failed: ${err.message}`)
})