From 6f970112c266e9457ceaad2ee834c8c7bd8ba684 Mon Sep 17 00:00:00 2001 From: saboooor Date: Mon, 18 Dec 2023 16:05:41 -0700 Subject: [PATCH] oop --- .github/workflows/crowdin-action.yml | 29 +++++++++++++++++++++++ .github/workflows/{main.yml => tauri.yml} | 16 ------------- 2 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/crowdin-action.yml rename .github/workflows/{main.yml => tauri.yml} (68%) diff --git a/.github/workflows/crowdin-action.yml b/.github/workflows/crowdin-action.yml new file mode 100644 index 00000000..40bbec66 --- /dev/null +++ b/.github/workflows/crowdin-action.yml @@ -0,0 +1,29 @@ +name: 'publish' +on: + push: + branches: + - dev + +jobs: + synchronize-with-crowdin: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: crowdin-action + uses: crowdin/github-action@v1.15.2 + with: + upload_sources: true + upload_translations: false + download_translations: true + localization_branch_name: l10n_dev + create_pull_request: true + pull_request_title: 'New Crowdin Translations' + pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' + pull_request_base_branch_name: 'dev' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/tauri.yml similarity index 68% rename from .github/workflows/main.yml rename to .github/workflows/tauri.yml index 338b2d68..2246cb10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/tauri.yml @@ -20,22 +20,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: crowdin-action - uses: crowdin/github-action@v1.15.2 - with: - upload_sources: true - upload_translations: false - download_translations: true - localization_branch_name: l10n_dev - create_pull_request: true - pull_request_title: 'New Crowdin Translations' - pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' - pull_request_base_branch_name: 'dev' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} - - run: corepack enable - name: Install Node.js