Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jul 8, 2022
1 parent 405e2bb commit 3c63e57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ jobs:
Trigger:
runs-on: ubuntu-latest
if: ${{ !startsWith(github.head_ref, 'env/') }}
environment: dev

needs:
- Setup
Expand Down
6 changes: 5 additions & 1 deletion src/scrappers/git.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ module.exports = class Git extends Scrapper {
const repository = this.context.payload.repository.name
const organization = this.context.payload.repository.full_name.split('/')[0]
const branch = this.context.ref.replace('refs/heads/', '')
const [ firstName, ...surnames ] = this.context.payload.head_commit.committer.name.split(' ')

let firstName, surnames
if (this.context.payload.head_commit.committer) {
[ firstName, ...surnames ] = this.context.payload.head_commit.committer.name.split(' ')
}

const hasReleaserc = fs.existsSync(path.join(process.cwd(), '.releaserc.json'))
? true
Expand Down

0 comments on commit 3c63e57

Please sign in to comment.