This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Agrim/Pr 4179 update payment method #11373
Workflow file for this run
This file contains 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: Pre-push Translation | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: write | |
pull-requests: write | |
statuses: write | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: | |
- 'master*' | |
env: | |
BRANCH: ${{ github.head_ref }} | |
jobs: | |
check-translation-branch: | |
runs-on: ubuntu-latest | |
if: | | |
(startsWith(github.head_ref, 'translation') || startsWith(github.head_ref, 'stp')) && | |
!contains(github.head_ref, '!') && | |
!contains(github.head_ref, '@') && | |
!contains(github.head_ref, '#') && | |
!contains(github.head_ref, '$') && | |
!contains(github.head_ref, '%') && | |
!contains(github.head_ref, '^') && | |
!contains(github.head_ref, '&') && | |
!contains(github.head_ref, '*') && | |
!contains(github.head_ref, '(') && | |
!contains(github.head_ref, ')') | |
steps: | |
- name: Branch Check 🔍 | |
run: | | |
CLEAN_BRANCH="${BRANCH//[^[:alnum:]-_]/}" | |
echo "$CLEAN_BRANCH is a valid branch for translation workflow" | |