Feat/peda/communities #68
This file contains hidden or 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: Merge phrase-translations | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
update_wordings: | |
runs-on: ubuntu-latest | |
# Only run for PRs from specific branch | |
if: github.event.pull_request.head.ref == 'phrase-translations' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Accept PR from Phrase | |
run: | | |
gh pr merge ${{ github.event.pull_request.number }} --squash | |
env: | |
GH_TOKEN: ${{ secrets.PHRASE_TRANSLATIONS }} | |
- name: Slack Notification on error | |
if: ${{ failure() }} | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_CHANNEL: general | |
SLACK_COLOR: ${{ job.status }} | |
SLACK_MESSAGE: 'Merge phrase-translations completed : ${{ job.status }}' | |
SLACK_TITLE: 'Merge phrase-translations' | |
SLACK_WEBHOOK: ${{ secrets.SLACK_MONITOR_MOBILE_URL }} |