Skip to content

Commit cc49e3a

Browse files
committed
ci: use direct weekly maintenance updates
── bmi/main · 8075ee51b351 · 3 file · +13/-62 · 2026-06-03T11:12:32Z
1 parent 4eed226 commit cc49e3a

3 files changed

Lines changed: 13 additions & 62 deletions

File tree

‎.github/workflows/auto-update.yml‎

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ on:
88
# Manual trigger option
99
workflow_dispatch:
1010
inputs:
11-
strategy:
12-
description: How to publish updates
13-
type: choice
14-
options:
15-
- pr
16-
- direct
17-
default: pr
1811
force_update:
1912
description: Continue even if checks fail
2013
type: boolean
@@ -23,14 +16,12 @@ on:
2316
permissions:
2417
contents: write
2518
actions: read
26-
pull-requests: write
2719

2820
env:
29-
UPDATE_STRATEGY: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.strategy || 'pr' }}
3021
FORCE_UPDATE: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force_update || 'false' }}
31-
OWNER_NAME: ${{ github.repository_owner }}
22+
OWNER_NAME: oxyzenQ
3223
OWNER_EMAIL: 130107241+oxyzenQ@users.noreply.github.com
33-
BASE_BRANCH: ${{ github.ref_name }}
24+
BASE_BRANCH: ${{ github.event.repository.default_branch || 'main' }}
3425
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
3526
NODE_VERSION: 24
3627
VERCEL_NODE_RUNTIME: nodejs24.x
@@ -136,8 +127,8 @@ jobs:
136127
echo "commit_message=chore(deps): update dependencies"
137128
} >> "$GITHUB_OUTPUT"
138129
139-
- name: Commit and push changes (direct)
140-
if: steps.check_changes.outputs.changes == 'true' && env.UPDATE_STRATEGY == 'direct'
130+
- name: Commit and push changes
131+
if: steps.check_changes.outputs.changes == 'true'
141132
run: |
142133
git config --global user.name "${OWNER_NAME}"
143134
git config --global user.email "${OWNER_EMAIL}"
@@ -152,19 +143,6 @@ jobs:
152143
153144
echo "✅ Changes committed and pushed to ${BASE_BRANCH}!"
154145
155-
- name: Create pull request (pr)
156-
id: cpr
157-
if: steps.check_changes.outputs.changes == 'true' && env.UPDATE_STRATEGY == 'pr'
158-
uses: peter-evans/create-pull-request@v8.1.1
159-
with:
160-
token: ${{ secrets.GITHUB_TOKEN }}
161-
commit-message: ${{ steps.commit_msg.outputs.commit_message }}
162-
title: ${{ steps.commit_msg.outputs.title }}
163-
body: ${{ steps.commit_msg.outputs.title }}
164-
branch: bot/auto-update-deps
165-
base: ${{ env.BASE_BRANCH }}
166-
delete-branch: true
167-
168146
- name: Summary
169147
if: always()
170148
run: |
@@ -173,7 +151,7 @@ jobs:
173151
echo "🤖 AUTO UPDATE SUMMARY"
174152
echo "════════════════════════════════════════════════════════"
175153
echo ""
176-
echo "Strategy: ${{ env.UPDATE_STRATEGY }}"
154+
echo "Strategy: direct to ${BASE_BRANCH}"
177155
echo "Force Update: ${{ env.FORCE_UPDATE }}"
178156
echo ""
179157
@@ -184,13 +162,8 @@ jobs:
184162
185163
echo ""
186164
187-
if [ "${{ env.UPDATE_STRATEGY }}" == "direct" ]; then
188-
echo "✅ Changes pushed to ${{ env.BASE_BRANCH }} branch"
189-
echo "📍 Commit: $(git rev-parse HEAD)"
190-
else
191-
echo "✅ Pull request created"
192-
echo "🔗 PR: ${{ steps.cpr.outputs.pull-request-url }}"
193-
fi
165+
echo "✅ Changes pushed to ${BASE_BRANCH} branch"
166+
echo "📍 Commit: $(git rev-parse HEAD)"
194167
else
195168
echo "✅ No updates needed - everything is current!"
196169

‎.github/workflows/runtime-probe.yml‎

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,18 @@ on:
1111
description: Space-separated future Node majors to probe
1212
type: string
1313
default: '24 26 28'
14-
strategy:
15-
description: How to publish a passing runtime upgrade
16-
type: choice
17-
options:
18-
- direct
19-
- pr
20-
default: direct
2114

2215
permissions:
2316
contents: write
24-
pull-requests: write
2517

2618
concurrency:
2719
group: runtime-probe
2820
cancel-in-progress: false
2921

3022
env:
3123
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
32-
OWNER_NAME: ${{ github.repository_owner }}
24+
OWNER_NAME: oxyzenQ
3325
OWNER_EMAIL: 130107241+oxyzenQ@users.noreply.github.com
34-
UPDATE_STRATEGY: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.strategy || 'direct' }}
3526
RUNTIME_CANDIDATES: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.candidates || '24 26 28' }}
3627

3728
jobs:
@@ -171,7 +162,7 @@ jobs:
171162
git diff --check
172163
173164
- name: Commit runtime upgrade
174-
if: steps.probe.outputs.upgraded == 'true' && env.UPDATE_STRATEGY == 'direct'
165+
if: steps.probe.outputs.upgraded == 'true'
175166
shell: bash
176167
run: |
177168
set -euo pipefail
@@ -189,18 +180,6 @@ jobs:
189180
git commit -m "ci: upgrade Node runtime to ${{ steps.probe.outputs.runtime }}"
190181
git push origin "HEAD:${{ steps.branch.outputs.name }}"
191182
192-
- name: Create runtime upgrade pull request
193-
if: steps.probe.outputs.upgraded == 'true' && env.UPDATE_STRATEGY == 'pr'
194-
uses: peter-evans/create-pull-request@v7
195-
with:
196-
token: ${{ secrets.PAT_WORKFLOW || secrets.GITHUB_TOKEN }}
197-
commit-message: 'ci: upgrade Node runtime to ${{ steps.probe.outputs.runtime }}'
198-
title: 'ci: upgrade Node runtime to ${{ steps.probe.outputs.runtime }}'
199-
body: Automated runtime probe passed the full quality gate.
200-
branch: bot/runtime-probe
201-
base: ${{ steps.branch.outputs.name }}
202-
delete-branch: true
203-
204183
- name: Summary
205184
if: always()
206185
run: |
@@ -209,7 +188,7 @@ jobs:
209188
echo ""
210189
echo "Current Node: ${{ steps.current.outputs.node }}"
211190
echo "Candidates: ${RUNTIME_CANDIDATES}"
212-
echo "Strategy: ${UPDATE_STRATEGY}"
191+
echo "Strategy: direct to ${{ steps.branch.outputs.name }}"
213192
echo "Upgraded: ${{ steps.probe.outputs.upgraded || 'false' }}"
214193
215194
if [ "${{ steps.probe.outputs.upgraded || 'false' }}" = "true" ]; then

‎.github/workflows/self-heal-actions.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414

1515
name: ❤️‍🩹 self-heal-actions
1616

17-
# This workflow runs every Monday at 00:00 WIB (UTC+7)
18-
# Equivalent to Sunday at 17:00 UTC
17+
# This workflow runs once a week on Monday at 01:00 UTC (08:00 WIB).
1918
on:
2019
schedule:
21-
- cron: '0 17 * * 0'
20+
- cron: '0 1 * * 1'
2221
workflow_dispatch: {}
2322

2423
concurrency:
@@ -30,7 +29,7 @@ permissions:
3029

3130
env:
3231
# Repository owner identity (must match the owner so contributions show up).
33-
OWNER_NAME: ${{ github.repository_owner }}
32+
OWNER_NAME: oxyzenQ
3433
OWNER_EMAIL: 130107241+oxyzenQ@users.noreply.github.com
3534
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
3635

0 commit comments

Comments
 (0)