Skip to content

Commit 10009c2

Browse files
committed
Update and recompile agentic workflows
1 parent 8277555 commit 10009c2

File tree

3 files changed

+516
-349
lines changed

3 files changed

+516
-349
lines changed

.github/aw/actions-lock.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
"repo": "github/gh-aw/actions/setup",
1010
"version": "v0.44.0",
1111
"sha": "cec1ecf3b97e9a1bbffaedf490a49ce03c1071ba"
12+
},
13+
"github/gh-aw/actions/setup@v0.47.2": {
14+
"repo": "github/gh-aw/actions/setup",
15+
"version": "v0.47.2",
16+
"sha": "faf2523ba6ae8aa862dc5c98e06d72e54a342d1f"
17+
},
18+
"github/gh-aw/actions/setup@v0.53.3": {
19+
"repo": "github/gh-aw/actions/setup",
20+
"version": "v0.53.3",
21+
"sha": "a0ed2f46906483dcf634e8694268e4fab9b21e65"
1222
}
1323
}
1424
}

.github/workflows/agentics-maintenance.yml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1414
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1515
#
16-
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.44.0). DO NOT EDIT.
16+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.53.3). DO NOT EDIT.
1717
#
1818
# To regenerate this workflow, run:
1919
# gh aw compile
@@ -37,19 +37,32 @@ on:
3737
schedule:
3838
- cron: "37 0 * * *" # Daily (based on minimum expires: 7 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:
57+
if: ${{ !github.event.repository.fork && (github.event_name != 'workflow_dispatch' || github.event.inputs.operation == '') }}
4558
runs-on: ubuntu-slim
4659
permissions:
4760
discussions: write
4861
issues: write
4962
pull-requests: write
5063
steps:
5164
- name: Setup Scripts
52-
uses: github/gh-aw/actions/setup@v0.53.0
65+
uses: github/gh-aw/actions/setup@a0ed2f46906483dcf634e8694268e4fab9b21e65 # v0.53.3
5366
with:
5467
destination: /opt/gh-aw/actions
5568

@@ -79,3 +92,50 @@ jobs:
7992
setupGlobals(core, github, context, exec, io);
8093
const { main } = require('/opt/gh-aw/actions/close_expired_pull_requests.cjs');
8194
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@a0ed2f46906483dcf634e8694268e4fab9b21e65 # v0.53.3
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.53.3
126+
with:
127+
version: v0.53.3
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)