diff --git a/.github/workflows/localization_branch_sync.yml b/.github/workflows/localization_branch_sync.yml index 97e57071a47c..4467846a2e23 100644 --- a/.github/workflows/localization_branch_sync.yml +++ b/.github/workflows/localization_branch_sync.yml @@ -6,6 +6,24 @@ on: types: [closed] jobs: + print_info: + name: 'Print Information' + runs-on: ubuntu-latest + steps: + - name: "Get Pull Request Status" + run: | + echo "${{ github.event.pull_request.merged }}" + - name: "Get Username" + run: | + echo "${{ github.event.pull_request.user.login }}" + - name: "Get if using Localization-bot label" + run: | + echo "${{ contains(github.event.pull_request.labels.*.names, 'localization_bot') }}" + - name: "FROM_LEGO" + run: | + echo "${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions' && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}" + + delete_branch: name: 'Delete Localization branch' runs-on: ubuntu-latest