From e526c84f4ab6d540a15bfae3964c61c866838f1e Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 13 Aug 2024 17:00:43 +0200 Subject: [PATCH] chore(actions): auto approve --- .github/workflows/docs-localization-download.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-localization-download.yml b/.github/workflows/docs-localization-download.yml index 05d17456df..d1bcee40de 100644 --- a/.github/workflows/docs-localization-download.yml +++ b/.github/workflows/docs-localization-download.yml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-latest outputs: pr_ref: pull/${{ steps.crowdin.outputs.pull_request_number }}/head + pr_url: ${{ steps.crowdin.outputs.pull_request_url }} + pr_id: ${{ steps.crowdin.outputs.pull_request_number }} steps: - uses: actions/checkout@v4 - name: "Install Python" @@ -96,4 +98,10 @@ jobs: uses: benc-uk/workflow-dispatch@v1.2.4 with: workflow: version-updates.yml - ref: ${{ needs.download.outputs.pr_ref }} \ No newline at end of file + ref: ${{ needs.download.outputs.pr_ref }} + - run: gh pr review --approve ${{ needs.download.outputs.pr_id }} -b "auto-approval for localization sync :3" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - run: gh pr merge --auto --squash ${{ needs.download.outputs.pr_id }} + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file