Skip to content

Commit

Permalink
ci(travis): use git environment variables to change release author
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Mar 17, 2020
1 parent 15bf159 commit 2b4fefb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ jobs:
- yarn global add semantic-release @semantic-release/changelog @semantic-release/git
before_script:
- git checkout ${TRAVIS_BRANCH}
- git config user.name "Social Groovy Bot"
- git config user.email "45039513+SocialGroovyBot@users.noreply.github.com"
- git remote set-url origin https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- export GIT_AUTHOR_EMAIL="45039513+SocialGroovyBot@users.noreply.github.com"
- export GIT_AUTHOR_NAME="Social Groovy Bot"
- export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
- export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME}"
script:
- semantic-release

0 comments on commit 2b4fefb

Please sign in to comment.