xamarin-macios/.github/workflows/localization_branch_sync.yml

31 строка
863 B
YAML

name: Sync Localization Branch
on:
pull_request:
branches:
- 'main'
types: [closed]
concurrency:
group: 'Localization-Sync'
cancel-in-progress: false
jobs:
replaceLocalizationBranch:
name: 'Replace Localization Branch'
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' && contains(github.event.pull_request.labels.*.name, 'localization_bot') }}
steps:
- uses: dawidd6/action-delete-branch@v3
name: 'delete'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: Localization
soft_fail: true
- uses: peterjgrainger/action-create-branch@v2.0.1
name: 'Create Localization Branch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'Localization'