# # ___ _ _ # / _ \ | | (_) # | |_| | __ _ ___ _ __ | |_ _ ___ # | _ |/ _` |/ _ \ '_ \| __| |/ __| # | | | | (_| | __/ | | | |_| | (__ # \_| |_/\__, |\___|_| |_|\__|_|\___| # __/ | # _ _ |___/ # | | | | / _| | # | | | | ___ _ __ _ __| |_| | _____ ____ # | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___| # \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ # \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ # # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.37.2). DO NOT EDIT. # # To regenerate this workflow, run: # gh aw compile # For more information: https://github.com/githubnext/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 or create-issues 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 steps: - name: Setup Scripts uses: githubnext/gh-aw/actions/setup@v0.37.2 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();