Skip to content

Commit b071603

Browse files
committed
Introduce Github agentic workflow to sync to latest EF daily build
1 parent b6a1b25 commit b071603

File tree

6 files changed

+1272
-0
lines changed

6 files changed

+1272
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
*.txt text=auto
99

1010
packages/ binary
11+
12+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/aw/actions-lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"entries": {
3+
"actions/github-script@v8": {
4+
"repo": "actions/github-script",
5+
"version": "v8",
6+
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
},
8+
"github/gh-aw/actions/setup@v0.44.0": {
9+
"repo": "github/gh-aw/actions/setup",
10+
"version": "v0.44.0",
11+
"sha": "cec1ecf3b97e9a1bbffaedf490a49ce03c1071ba"
12+
}
13+
}
14+
}
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.44.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 0 * * *" # Daily (based on minimum expires: 7 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.44.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)