CORE-5076: add text update (#1262) (#1263) #637
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: Rebase content branch | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: content | |
- name: git rebase | |
run: | | |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" | |
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" | |
git fetch origin master | |
git rebase origin/master | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: content | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
- name: Send Slack notification if rebase failed | |
if: failure() | |
uses: rtCamp/action-slack-notify@master | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_FE_ALERTS_WEB_HOOK }} | |
SLACK_COLOR: '#8B0000' | |
SLACK_ICON: 'https://avatars0.githubusercontent.com/u/20046234' | |
SLACK_MESSAGE: 'Git rebase of content branch in next repo failed. Please investigate and fix it.' | |
SLACK_TITLE: Rebase failed | |
SLACK_USERNAME: 'oa-bot' |