|
| 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