Skip to content

Commit 6cfbe4f

Browse files
committed
updated agentic workflow
1 parent 5dcc571 commit 6cfbe4f

File tree

4 files changed

+507
-367
lines changed

4 files changed

+507
-367
lines changed

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"repo": "actions/setup-node",
1515
"version": "v4",
1616
"sha": "49933ea5288caeca8642d1e84afbd3f7d6820020"
17+
},
18+
"github/gh-aw/actions/setup@v0.51.6": {
19+
"repo": "github/gh-aw/actions/setup",
20+
"version": "v0.51.6",
21+
"sha": "33cd6c7f1fee588654ef19def2e6a4174be66197"
1722
}
1823
}
1924
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
#
2+
# ___ _ _
3+
# / _ \ | | (_)
4+
# | |_| | __ _ ___ _ __ | |_ _ ___
5+
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
6+
# | | | | (_| | __/ | | | |_| | (__
7+
# \_| |_/\__, |\___|_| |_|\__|_|\___|
8+
# __/ |
9+
# _ _ |___/
10+
# | | | | / _| |
11+
# | | | | ___ _ __ _ __| |_| | _____ ____
12+
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
13+
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
14+
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
15+
#
16+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.51.6). DO NOT EDIT.
17+
#
18+
# To regenerate this workflow, run:
19+
# gh aw compile
20+
# Not all edits will cause changes to this file.
21+
#
22+
# For more information: https://github.github.com/gh-aw/introduction/overview/
23+
#
24+
# Alternative regeneration methods:
25+
# make recompile
26+
#
27+
# Or use the gh-aw CLI directly:
28+
# ./gh-aw compile --validate --verbose
29+
#
30+
# The workflow is generated when any workflow uses the 'expires' field
31+
# in create-discussions, create-issues, or create-pull-request safe-outputs configuration.
32+
# Schedule frequency is automatically determined by the shortest expiration time.
33+
#
34+
name: Agentic Maintenance
35+
36+
on:
37+
schedule:
38+
- cron: "37 0 * * *" # Daily (based on minimum expires: 6 days)
39+
workflow_dispatch:
40+
41+
permissions: {}
42+
43+
jobs:
44+
close-expired-entities:
45+
if: ${{ !github.event.repository.fork }}
46+
runs-on: ubuntu-slim
47+
permissions:
48+
discussions: write
49+
issues: write
50+
pull-requests: write
51+
steps:
52+
- name: Setup Scripts
53+
uses: github/gh-aw/actions/setup@33cd6c7f1fee588654ef19def2e6a4174be66197 # v0.51.6
54+
with:
55+
destination: /opt/gh-aw/actions
56+
57+
- name: Close expired discussions
58+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
59+
with:
60+
script: |
61+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
62+
setupGlobals(core, github, context, exec, io);
63+
const { main } = require('/opt/gh-aw/actions/close_expired_discussions.cjs');
64+
await main();
65+
66+
- name: Close expired issues
67+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
68+
with:
69+
script: |
70+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
71+
setupGlobals(core, github, context, exec, io);
72+
const { main } = require('/opt/gh-aw/actions/close_expired_issues.cjs');
73+
await main();
74+
75+
- name: Close expired pull requests
76+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
77+
with:
78+
script: |
79+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
80+
setupGlobals(core, github, context, exec, io);
81+
const { main } = require('/opt/gh-aw/actions/close_expired_pull_requests.cjs');
82+
await main();

0 commit comments

Comments
 (0)