diff --git a/.github/workflows/auto-translate-ios.yml b/.github/workflows/auto-translate-ios.yml index 05b6e75a..a95a806c 100644 --- a/.github/workflows/auto-translate-ios.yml +++ b/.github/workflows/auto-translate-ios.yml @@ -7,12 +7,6 @@ on: - develop paths: - '**/Localizable.xcstrings' - pull_request: - branches: - - main - - develop - paths: - - '**/Localizable.xcstrings' workflow_dispatch: inputs: force_retranslate: @@ -39,7 +33,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha || github.ref }} + ref: ${{ github.ref }} token: ${{ secrets.TRANSLATION_PAT_GHA_CLAUDE_JUL082026 }} - name: Set up Python @@ -85,7 +79,7 @@ jobs: gh pr create \ --title "🌍 Auto-translations: missing iOS strings updated" \ --body "$(cat /tmp/pr_body.md)" \ - --base "${{ github.event.pull_request.base.ref || github.ref_name }}" \ + --base "${{ github.ref_name }}" \ --head "$BRANCH" \ --label "translations" \ --reviewer "${{ github.actor }}" \ No newline at end of file