[Github Actions] Get rid of annoying failure emails (#13028)

This commit is contained in:
TJ Lambert 2021-10-21 11:40:38 -05:00 коммит произвёл GitHub
Родитель 6090611123
Коммит 7e89a3dccb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -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: