Agentic Maintenance #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # ___ _ _ | |
| # / _ \ | | (_) | |
| # | |_| | __ _ ___ _ __ | |_ _ ___ | |
| # | _ |/ _` |/ _ \ '_ \| __| |/ __| | |
| # | | | | (_| | __/ | | | |_| | (__ | |
| # \_| |_/\__, |\___|_| |_|\__|_|\___| | |
| # __/ | | |
| # _ _ |___/ | |
| # | | | | / _| | | |
| # | | | | ___ _ __ _ __| |_| | _____ ____ | |
| # | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___| | |
| # \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ | |
| # \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ | |
| # | |
| # This file was automatically generated by pkg/workflow/maintenance_workflow.go. DO NOT EDIT. | |
| # | |
| # To regenerate this workflow, run: | |
| # gh aw compile | |
| # For more information: https://github.com/github/gh-aw/blob/main/.github/aw/github-agentic-workflows.md | |
| # | |
| # 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 */2 * * *" # Every 2 hours (based on minimum expires: 1 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.42.11-5-g59b2d5fe5 | |
| with: | |
| destination: /opt/gh-aw/actions | |
| - name: Close expired discussions | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| 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.0.0 | |
| 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.0.0 | |
| 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(); |