mirror of
https://github.com/Z3Prover/z3
synced 2026-02-22 08:17:37 +00:00
81 lines
2.8 KiB
YAML
81 lines
2.8 KiB
YAML
#
|
|
# ___ _ _
|
|
# / _ \ | | (_)
|
|
# | |_| | __ _ ___ _ __ | |_ _ ___
|
|
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
|
|
# | | | | (_| | __/ | | | |_| | (__
|
|
# \_| |_/\__, |\___|_| |_|\__|_|\___|
|
|
# __/ |
|
|
# _ _ |___/
|
|
# | | | | / _| |
|
|
# | | | | ___ _ __ _ __| |_| | _____ ____
|
|
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
|
|
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
|
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
|
#
|
|
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.45.6). DO NOT EDIT.
|
|
#
|
|
# To regenerate this workflow, run:
|
|
# gh aw compile
|
|
# Not all edits will cause changes to this file.
|
|
#
|
|
# For more information: https://github.github.com/gh-aw/introduction/overview/
|
|
#
|
|
# Alternative regeneration methods:
|
|
# make recompile
|
|
#
|
|
# Or use the gh-aw CLI directly:
|
|
# ./gh-aw compile --validate --verbose
|
|
#
|
|
# The workflow is generated when any workflow uses the 'expires' field
|
|
# in create-discussions, create-issues, or create-pull-request safe-outputs configuration.
|
|
# Schedule frequency is automatically determined by the shortest expiration time.
|
|
#
|
|
name: Agentic Maintenance
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "37 0 * * *" # Daily (based on minimum expires: 7 days)
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
close-expired-entities:
|
|
runs-on: ubuntu-slim
|
|
permissions:
|
|
discussions: write
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: Setup Scripts
|
|
uses: github/gh-aw/actions/setup@v0.45.6
|
|
with:
|
|
destination: /opt/gh-aw/actions
|
|
|
|
- name: Close expired discussions
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
|
|
with:
|
|
script: |
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
setupGlobals(core, github, context, exec, io);
|
|
const { main } = require('/opt/gh-aw/actions/close_expired_discussions.cjs');
|
|
await main();
|
|
|
|
- name: Close expired issues
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
|
|
with:
|
|
script: |
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
setupGlobals(core, github, context, exec, io);
|
|
const { main } = require('/opt/gh-aw/actions/close_expired_issues.cjs');
|
|
await main();
|
|
|
|
- name: Close expired pull requests
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
|
|
with:
|
|
script: |
|
|
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
|
|
setupGlobals(core, github, context, exec, io);
|
|
const { main } = require('/opt/gh-aw/actions/close_expired_pull_requests.cjs');
|
|
await main();
|