1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-13 14:31:38 +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,24 +10,16 @@ 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) { const release = ReleasePRFactory.build(releaseType, {
case 'update-pr': { packageName: name || 'unknown',
const release = ReleasePRFactory.build(releaseType, { apiUrl: 'https://api.github.com',
packageName: name || 'unknown', repoUrl: process.env.GITHUB_REPOSITORY,
apiUrl: 'https://api.github.com', token: token,
repoUrl: process.env.GITHUB_REPOSITORY, label: RELEASE_LABEL
token: token, })
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}`)
}) })