Skip to content

Commit 98930d4

Browse files
krukowCopilot
andcommitted
Add auto-generated agentics-maintenance workflow
Generated by gh-aw for the expires: 1d setting on create-pull-request safe output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f375b59 commit 98930d4

2 files changed

Lines changed: 91 additions & 0 deletions

File tree

.github/aw/actions-lock.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"version": "v5",
1111
"sha": "cdf6c1fa76f9f475f3d7449005a359c84ca0f306"
1212
},
13+
"actions/checkout@v6": {
14+
"repo": "actions/checkout",
15+
"version": "v6",
16+
"sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd"
17+
},
1318
"actions/github-script@v8": {
1419
"repo": "actions/github-script",
1520
"version": "v8",
@@ -20,6 +25,11 @@
2025
"version": "v5",
2126
"sha": "be666c2fcd27ec809703dec50e508c2fdc7f6654"
2227
},
28+
"github/gh-aw/actions/setup-cli@v0.46.0": {
29+
"repo": "github/gh-aw/actions/setup-cli",
30+
"version": "v0.46.0",
31+
"sha": "f88ec26c65cc20ebb8ceabe809c9153385945bfe"
32+
},
2333
"github/gh-aw/actions/setup@v0.43.23": {
2434
"repo": "github/gh-aw/actions/setup",
2535
"version": "v0.43.23",
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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.46.0). 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 */2 * * *" # Every 2 hours (based on minimum expires: 1 days)
39+
workflow_dispatch:
40+
41+
permissions: {}
42+
43+
jobs:
44+
close-expired-entities:
45+
runs-on: ubuntu-slim
46+
permissions:
47+
discussions: write
48+
issues: write
49+
pull-requests: write
50+
steps:
51+
- name: Setup Scripts
52+
uses: github/gh-aw/actions/setup@v0.46.0
53+
with:
54+
destination: /opt/gh-aw/actions
55+
56+
- name: Close expired discussions
57+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
58+
with:
59+
script: |
60+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
61+
setupGlobals(core, github, context, exec, io);
62+
const { main } = require('/opt/gh-aw/actions/close_expired_discussions.cjs');
63+
await main();
64+
65+
- name: Close expired issues
66+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
67+
with:
68+
script: |
69+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
70+
setupGlobals(core, github, context, exec, io);
71+
const { main } = require('/opt/gh-aw/actions/close_expired_issues.cjs');
72+
await main();
73+
74+
- name: Close expired pull requests
75+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
76+
with:
77+
script: |
78+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
79+
setupGlobals(core, github, context, exec, io);
80+
const { main } = require('/opt/gh-aw/actions/close_expired_pull_requests.cjs');
81+
await main();

0 commit comments

Comments
 (0)