Skip to content

Commit 25f2549

Browse files
committed
Disabled workflows to conserve usage.
1 parent 193ccf2 commit 25f2549

10 files changed

Lines changed: 1085 additions & 447 deletions

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
"repo": "github/gh-aw/actions/setup",
4040
"version": "v0.51.2",
4141
"sha": "cccf96100f50705c4291b91a6071c556f72cb3ef"
42+
},
43+
"github/gh-aw/actions/setup@v0.55.0": {
44+
"repo": "github/gh-aw/actions/setup",
45+
"version": "v0.55.0",
46+
"sha": "e211c855a20aa6cf9297b411466e1c382a8686db"
4247
}
4348
}
4449
}

.github/workflows/agentics-maintenance.yml

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#
2-
# ___ _ _
3-
# / _ \ | | (_)
4-
# | |_| | __ _ ___ _ __ | |_ _ ___
2+
# ___ _ _
3+
# / _ \ | | (_)
4+
# | |_| | __ _ ___ _ __ | |_ _ ___
55
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
6-
# | | | | (_| | __/ | | | |_| | (__
6+
# | | | | (_| | __/ | | | |_| | (__
77
# \_| |_/\__, |\___|_| |_|\__|_|\___|
88
# __/ |
9-
# _ _ |___/
9+
# _ _ |___/
1010
# | | | | / _| |
1111
# | | | | ___ _ __ _ __| |_| | _____ ____
1212
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
1313
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1414
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1515
#
16-
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.51.2). DO NOT EDIT.
16+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.55.0). DO NOT EDIT.
1717
#
1818
# To regenerate this workflow, run:
1919
# gh aw compile
@@ -23,10 +23,10 @@
2323
#
2424
# Alternative regeneration methods:
2525
# make recompile
26-
#
26+
#
2727
# Or use the gh-aw CLI directly:
2828
# ./gh-aw compile --validate --verbose
29-
#
29+
#
3030
# The workflow is generated when any workflow uses the 'expires' field
3131
# in create-discussions, create-issues, or create-pull-request safe-outputs configuration.
3232
# Schedule frequency is automatically determined by the shortest expiration time.
@@ -37,20 +37,32 @@ on:
3737
schedule:
3838
- cron: "37 */2 * * *" # Every 2 hours (based on minimum expires: 1 days)
3939
workflow_dispatch:
40+
inputs:
41+
operation:
42+
description: 'Optional maintenance operation to run'
43+
required: false
44+
type: choice
45+
default: ''
46+
options:
47+
- ''
48+
- 'disable'
49+
- 'enable'
50+
- 'update'
51+
- 'upgrade'
4052

4153
permissions: {}
4254

4355
jobs:
4456
close-expired-entities:
45-
if: ${{ !github.event.repository.fork }}
57+
if: ${{ !github.event.repository.fork && (github.event_name != 'workflow_dispatch' || github.event.inputs.operation == '') }}
4658
runs-on: ubuntu-slim
4759
permissions:
4860
discussions: write
4961
issues: write
5062
pull-requests: write
5163
steps:
5264
- name: Setup Scripts
53-
uses: github/gh-aw/actions/setup@cccf96100f50705c4291b91a6071c556f72cb3ef # v0.51.2
65+
uses: github/gh-aw/actions/setup@e211c855a20aa6cf9297b411466e1c382a8686db # v0.55.0
5466
with:
5567
destination: /opt/gh-aw/actions
5668

@@ -80,3 +92,50 @@ jobs:
8092
setupGlobals(core, github, context, exec, io);
8193
const { main } = require('/opt/gh-aw/actions/close_expired_pull_requests.cjs');
8294
await main();
95+
96+
run_operation:
97+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.operation != '' && !github.event.repository.fork }}
98+
runs-on: ubuntu-slim
99+
permissions:
100+
actions: write
101+
contents: write
102+
pull-requests: write
103+
steps:
104+
- name: Checkout repository
105+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106+
with:
107+
persist-credentials: false
108+
109+
- name: Setup Scripts
110+
uses: github/gh-aw/actions/setup@e211c855a20aa6cf9297b411466e1c382a8686db # v0.55.0
111+
with:
112+
destination: /opt/gh-aw/actions
113+
114+
- name: Check admin/maintainer permissions
115+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
116+
with:
117+
github-token: ${{ secrets.GITHUB_TOKEN }}
118+
script: |
119+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
120+
setupGlobals(core, github, context, exec, io);
121+
const { main } = require('/opt/gh-aw/actions/check_team_member.cjs');
122+
await main();
123+
124+
- name: Install gh-aw
125+
uses: github/gh-aw/actions/setup-cli@v0.55.0
126+
with:
127+
version: v0.55.0
128+
129+
- name: Run operation
130+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
131+
env:
132+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133+
GH_AW_OPERATION: ${{ github.event.inputs.operation }}
134+
GH_AW_CMD_PREFIX: gh aw
135+
with:
136+
github-token: ${{ secrets.GITHUB_TOKEN }}
137+
script: |
138+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
139+
setupGlobals(core, github, context, exec, io);
140+
const { main } = require('/opt/gh-aw/actions/run_operation_update_upgrade.cjs');
141+
await main();

0 commit comments

Comments
 (0)