[Github Actions] Get rid of annoying failure emails (#13028)
This commit is contained in:
Родитель
6090611123
Коммит
7e89a3dccb
|
@ -13,14 +13,10 @@ 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:
|
||||
- name: 'Check for Fork'
|
||||
run: echo "Action cannot be executed on forks" && exit 1
|
||||
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
||||
|
||||
- uses: dawidd6/action-delete-branch@v3
|
||||
name: 'delete'
|
||||
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branches: Localization
|
||||
|
@ -28,7 +24,6 @@ jobs:
|
|||
|
||||
- uses: peterjgrainger/action-create-branch@v2.0.1
|
||||
name: 'Create Localization Branch'
|
||||
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
|
Загрузка…
Ссылка в новой задаче