From 2a01694251661baa62dc8b6c49b1ba9a7fa4794b Mon Sep 17 00:00:00 2001 From: rockleona Date: Wed, 3 Jan 2024 22:27:41 +0800 Subject: [PATCH 1/3] Test run --- .github/workflows/summarize_progress.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/summarize_progress.yml b/.github/workflows/summarize_progress.yml index 32bbf5fd17..2edaa0461f 100644 --- a/.github/workflows/summarize_progress.yml +++ b/.github/workflows/summarize_progress.yml @@ -1,8 +1,11 @@ name: summarize_progress on: - schedule: - - cron: '30 23 * * 5' + push: + branches: + - 'feature/summarize' + schedule: + - cron: '30 23 * * 5' jobs: ci: @@ -23,6 +26,14 @@ jobs: .scripts/summarize_progress.sh shell: bash - - uses: stefanzweifel/git-auto-commit-action@v5 + - name: Checkout wiki code + uses: actions/checkout@v2 with: - commit_message: Weekly Update -- Summarize Progress \ No newline at end of file + repository: ${{github.repository}}.wiki + path: markdown + + - name: commit wiki code + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Weekly Update -- Summarize Progress + repository: markdown \ No newline at end of file From 2758345271e160e82affbfe5edc17a18dfdcefd2 Mon Sep 17 00:00:00 2001 From: rockleona Date: Wed, 3 Jan 2024 22:33:53 +0800 Subject: [PATCH 2/3] Update to copy output to wiki --- .github/workflows/summarize_progress.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/summarize_progress.yml b/.github/workflows/summarize_progress.yml index 2edaa0461f..db63d0e353 100644 --- a/.github/workflows/summarize_progress.yml +++ b/.github/workflows/summarize_progress.yml @@ -25,14 +25,20 @@ jobs: chmod +x .scripts/summarize_progress.sh .scripts/summarize_progress.sh shell: bash + - name: Checkout wiki code uses: actions/checkout@v2 with: repository: ${{github.repository}}.wiki path: markdown + + - name: Copy content + run: | + cp .scripts/summarize_progress/dist/summarize_progress.md markdown/summarize_progess.md + shell: bash - - name: commit wiki code + - name: Commit wiki code uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Weekly Update -- Summarize Progress From 4950398d42676e9fe1651daeecfd6db17706938e Mon Sep 17 00:00:00 2001 From: rockleona Date: Wed, 3 Jan 2024 22:37:02 +0800 Subject: [PATCH 3/3] Fix content to create PR --- .github/workflows/summarize_progress.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/summarize_progress.yml b/.github/workflows/summarize_progress.yml index db63d0e353..c2c35a6740 100644 --- a/.github/workflows/summarize_progress.yml +++ b/.github/workflows/summarize_progress.yml @@ -1,9 +1,6 @@ name: summarize_progress on: - push: - branches: - - 'feature/summarize' schedule: - cron: '30 23 * * 5' @@ -35,7 +32,7 @@ jobs: - name: Copy content run: | - cp .scripts/summarize_progress/dist/summarize_progress.md markdown/summarize_progess.md + cp .scripts/summarize_progress/dist/summarize_progress.md markdown/各檔案翻譯進度清單.md shell: bash - name: Commit wiki code