From 970cc0b7c87907bb27c4bbee8d76ef4dde34a165 Mon Sep 17 00:00:00 2001 From: Muhammad Jundy Rabbani <54092710+jundy779@users.noreply.github.com> Date: Sat, 28 Feb 2026 22:09:25 +0700 Subject: [PATCH 1/2] Update auto-green.yml --- .github/workflows/auto-green.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/auto-green.yml b/.github/workflows/auto-green.yml index 25bb58c..65cf0c9 100644 --- a/.github/workflows/auto-green.yml +++ b/.github/workflows/auto-green.yml @@ -1,31 +1,32 @@ -name: Auto Green Bot +name: Auto Green on: schedule: - - cron: "*/30 * * * *" + - cron: "*/30 * * * *" # cek tiap 30 menit workflow_dispatch: permissions: contents: write -concurrency: - group: auto-green - cancel-in-progress: true - jobs: auto-green: runs-on: ubuntu-latest - steps: - name: Checkout repo pakai PAT pribadi uses: actions/checkout@v4 with: token: ${{ secrets.PAT_TOKEN }} + fetch-depth: 0 - - name: Random delay (0-30 menit) biar berasa 30-60 menit - run: sleep $(( RANDOM % 1800 )) + - name: Randomize interval (skip 50% runs) + run: | + # 50% skip -> rata-rata commit tiap ~60 menit + if [ $((RANDOM % 2)) -eq 0 ]; then + echo "Random skip this run." + exit 0 + fi - - name: Generate random data + - name: Generate random data (always changes) run: | TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") RANDOM_NUM=$((RANDOM % 10000)) @@ -43,6 +44,8 @@ jobs: run: | git config user.name "${GIT_USER}" git config user.email "${GIT_EMAIL}" + git add data.json - git commit -m "🌱 Auto update by ${GIT_USER} - $(date -u +"%Y-%m-%d %H:%M:%S")" || echo "Tidak ada perubahan untuk di-commit" + git commit -m "🌱 Auto update by ${GIT_USER} - $(date -u +"%Y-%m-%d %H:%M:%S UTC")" || exit 0 + git push https://x-access-token:${TOKEN}@github.com/${{ github.repository }}.git HEAD:main From 19b3b4c74808d144e906ecc69883c3f01c312363 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 02:17:07 +0000 Subject: [PATCH 2/2] ci(deps): bump actions/setup-node from 4 to 6 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 259fe06..23ccd3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: # ── Setup Node.js ───────────────────────────────────────────────────── - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: '18' cache: 'npm' @@ -51,7 +51,7 @@ jobs: # ── Setup Node.js ───────────────────────────────────────────────────── - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: '18' cache: 'npm'