1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-13 18:21:39 +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 - master
name: coverage name: coverage
jobs: jobs:
coveralls: update-pr:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: bcoe/release-please-action@master - uses: bcoe/release-please-action@master

View File

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