From 01c46cfbcdfd9654b25cea4e8579d25940b41765 Mon Sep 17 00:00:00 2001 From: Camber Huang Date: Sun, 24 Aug 2025 08:47:19 +0800 Subject: [PATCH 1/4] ci: fix branch name from main to master in workflow Signed-off-by: Camber Huang --- .github/workflows/periodic-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic-update.yml b/.github/workflows/periodic-update.yml index 3092575..7a1a558 100644 --- a/.github/workflows/periodic-update.yml +++ b/.github/workflows/periodic-update.yml @@ -2,7 +2,7 @@ name: Periodic updates on: push: - branches: [ main ] + branches: [ master ] schedule: - cron: "0 0 * * *" workflow_dispatch: ~ From db1cf35469a56e5630f20dba5db3509b0bb0185f Mon Sep 17 00:00:00 2001 From: Camber Huang Date: Sun, 24 Aug 2025 08:48:41 +0800 Subject: [PATCH 2/4] ci: auto-bumping tag when specific file updates Signed-off-by: Camber Huang --- .github/workflows/periodic-update.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/periodic-update.yml b/.github/workflows/periodic-update.yml index 7a1a558..b8d38e5 100644 --- a/.github/workflows/periodic-update.yml +++ b/.github/workflows/periodic-update.yml @@ -27,9 +27,25 @@ jobs: - name: Push uses: JamesIves/github-pages-deploy-action@v4 + id: deploy-file with: branch: master folder: . git-config-name: github-actions[bot] git-config-email: 41898282+github-actions[bot]@users.noreply.github.com commit-message: updated ${{ steps.current-time.outputs.formattedTime }} UTC + + - name: tagging-get-current-time + if: ${{ steps.deploy-file.outputs.deployment-status == 'success' }} + uses: srfrnk/current-time@master + id: current-time-tagging + with: + format: "YYYYMMDD" + + - name: tagging + if: ${{ steps.deploy-file.outputs.deployment-status == 'success' }} + uses: anothrNick/github-tag-action@1.75.0 + env: + CUSTOM_TAG: ${{ steps.current-time-tagging.outputs.formattedTime }} + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7d2fff54493f6844dafdc1a465396e5a4276fcba Mon Sep 17 00:00:00 2001 From: Camber Huang Date: Sun, 24 Aug 2025 22:39:40 +0800 Subject: [PATCH 3/4] ci: periodic-update triggers on push only when files.list updates Signed-off-by: Camber Huang --- .github/workflows/periodic-update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/periodic-update.yml b/.github/workflows/periodic-update.yml index b8d38e5..21897b9 100644 --- a/.github/workflows/periodic-update.yml +++ b/.github/workflows/periodic-update.yml @@ -3,6 +3,7 @@ name: Periodic updates on: push: branches: [ master ] + paths: [ files.list ] schedule: - cron: "0 0 * * *" workflow_dispatch: ~ From 8d2a5406c0e911a0a857317ec97409f50bf1ec09 Mon Sep 17 00:00:00 2001 From: Camber Huang Date: Sun, 24 Aug 2025 22:40:09 +0800 Subject: [PATCH 4/4] ci: add check-only when receiving PR on files.list Signed-off-by: Camber Huang --- .github/workflows/verify-update.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/verify-update.yml diff --git a/.github/workflows/verify-update.yml b/.github/workflows/verify-update.yml new file mode 100644 index 0000000..e941260 --- /dev/null +++ b/.github/workflows/verify-update.yml @@ -0,0 +1,18 @@ +name: Verify updates (check only) + +on: + pull_request: + paths: [ files.list ] + workflow_dispatch: ~ + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Update + run: | + bash update-files.sh