Update Travis Test Branch #1181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Travis Test Branch | |
on: | |
schedule: | |
# scheduled for every night at 03:00am (UTC) or 00:00am (GMT-3) | |
- cron: '0 3 * * *' | |
jobs: | |
merge-upstream: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup git name/email. | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
- name: Merge master branch into travis-build for triggering CI. | |
run: | | |
git branch --all | |
git config --list | |
git checkout travis-build | |
git merge --strategy-option theirs --no-ff origin/master | |
git push origin travis-build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |