From 4f0e10db98f4c0acc82efd3d3a15e735fb3301d7 Mon Sep 17 00:00:00 2001 From: "airo.pi_" <47398145+AiroPi@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:21:41 +0100 Subject: [PATCH] Update PR creation process --- .github/workflows/crowdin-download.yml | 27 +++++++------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/crowdin-download.yml b/.github/workflows/crowdin-download.yml index 9a9352a..4f7f3a7 100644 --- a/.github/workflows/crowdin-download.yml +++ b/.github/workflows/crowdin-download.yml @@ -29,23 +29,10 @@ jobs: env: CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }} - # - uses: EndBug/add-and-commit@v9 - # with: - # message: "PO files updated." - - # - name: Create pull request - # id: cpr_crowdin - # uses: peter-evans/create-pull-request@v3 - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # commit-message: Crowdin translations download - # title: "[Crowdin] Updated translation files" - # body: | - # Created by the [Crowdin download workflow](.github/workflows/crowdin_download.yml). - # branch: "auto/crowdin" - # author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - - - name: create pull request - run: gh pr create -B auto/crowdin -H master --title 'Update translations.' --body 'Created by Github action' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: "PO files added." + branch: auto/crowdin + title: "Update translations" + add-paths: "**.po"