Skip to content

Commit

Permalink
✨ Don't throw an error when Netlify credentials are not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Feb 27, 2020
1 parent 39e26a8 commit 57f73f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ async function run(): Promise<void> {
try {
const netlifyAuthToken = process.env.NETLIFY_AUTH_TOKEN
const siteId = process.env.NETLIFY_SITE_ID
if (!(netlifyAuthToken && siteId)) {
process.stdout.write('Netlify credentials not provided, not deployable')
return
}
const dir = core.getInput('publish-dir', {required: true})
const productionBranch = core.getInput('production-branch')
// NOTE: if production-branch is not specified, it is "", so isDraft is always true
Expand Down

0 comments on commit 57f73f8

Please sign in to comment.