|
|
@@ -1,18 +1,19 @@
|
|
|
-# ___ _ _
|
|
|
-# / _ \ | | (_)
|
|
|
-# | |_| | __ _ ___ _ __ | |_ _ ___
|
|
|
+# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.86.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
|
+#
|
|
|
+# ___ _ _
|
|
|
+# / _ \ | | (_)
|
|
|
+# | |_| | __ _ ___ _ __ | |_ _ ___
|
|
|
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
|
|
|
-# | | | | (_| | __/ | | | |_| | (__
|
|
|
+# | | | | (_| | __/ | | | |_| | (__
|
|
|
# \_| |_/\__, |\___|_| |_|\__|_|\___|
|
|
|
# __/ |
|
|
|
-# _ _ |___/
|
|
|
+# _ _ |___/
|
|
|
# | | | | / _| |
|
|
|
# | | | | ___ _ __ _ __| |_| | _____ ____
|
|
|
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
|
|
|
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
|
|
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
|
|
#
|
|
|
-# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.79.4). DO NOT EDIT.
|
|
|
#
|
|
|
# To regenerate this workflow, run:
|
|
|
# gh aw compile
|
|
|
@@ -20,15 +21,17 @@
|
|
|
#
|
|
|
# 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.
|
|
|
+# This file defines the generated agentic maintenance workflow for this repository.
|
|
|
+# It runs scheduled cleanup for expiring safe outputs and supports manual maintenance operations.
|
|
|
+#
|
|
|
+# This workflow is generated automatically when workflows use expiring safe outputs
|
|
|
+# or when repository maintenance features are enabled in .github/workflows/aw.json.
|
|
|
+#
|
|
|
+# To disable maintenance workflow generation, set in .github/workflows/aw.json:
|
|
|
+# {"maintenance": false}
|
|
|
+#
|
|
|
+# Agentic maintenance docs:
|
|
|
+# https://github.github.com/gh-aw/reference/ephemerals/#manual-maintenance-operations
|
|
|
#
|
|
|
name: Agentic Maintenance
|
|
|
|
|
|
@@ -84,16 +87,14 @@ on:
|
|
|
permissions: {}
|
|
|
|
|
|
jobs:
|
|
|
- close-expired-entities:
|
|
|
+ close-expired-discussions:
|
|
|
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
|
|
|
runs-on: ubuntu-slim
|
|
|
permissions:
|
|
|
discussions: write
|
|
|
- issues: write
|
|
|
- pull-requests: write
|
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -105,6 +106,16 @@ jobs:
|
|
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
|
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_discussions.cjs');
|
|
|
await main();
|
|
|
+ close-expired-issues:
|
|
|
+ if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
|
|
|
+ runs-on: ubuntu-slim
|
|
|
+ permissions:
|
|
|
+ issues: write
|
|
|
+ steps:
|
|
|
+ - name: Setup Scripts
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
+ with:
|
|
|
+ destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
- name: Close expired issues
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
@@ -114,6 +125,16 @@ jobs:
|
|
|
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
|
const { main } = require('${{ runner.temp }}/gh-aw/actions/close_expired_issues.cjs');
|
|
|
await main();
|
|
|
+ close-expired-pull-requests:
|
|
|
+ if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }}
|
|
|
+ runs-on: ubuntu-slim
|
|
|
+ permissions:
|
|
|
+ pull-requests: write
|
|
|
+ steps:
|
|
|
+ - name: Setup Scripts
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
+ with:
|
|
|
+ destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
- name: Close expired pull requests
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
@@ -131,7 +152,7 @@ jobs:
|
|
|
actions: write
|
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -155,12 +176,12 @@ jobs:
|
|
|
operation: ${{ steps.record.outputs.operation }}
|
|
|
steps:
|
|
|
- name: Checkout repository
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
with:
|
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -175,9 +196,9 @@ jobs:
|
|
|
await main();
|
|
|
|
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup-cli@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
- version: v0.79.4
|
|
|
+ version: v0.86.2
|
|
|
|
|
|
- name: Run operation
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
@@ -195,7 +216,9 @@ jobs:
|
|
|
|
|
|
- name: Record outputs
|
|
|
id: record
|
|
|
- run: echo "operation=${{ inputs.operation }}" >> "$GITHUB_OUTPUT"
|
|
|
+ env:
|
|
|
+ GH_AW_OPERATION: ${{ inputs.operation }}
|
|
|
+ run: echo "operation=$GH_AW_OPERATION" >> "$GITHUB_OUTPUT"
|
|
|
|
|
|
update_pull_request_branches:
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'update_pull_request_branches' && (!(github.event.repository.fork)) }}
|
|
|
@@ -205,7 +228,7 @@ jobs:
|
|
|
pull-requests: write
|
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -244,14 +267,15 @@ jobs:
|
|
|
run_url: ${{ steps.record.outputs.run_url }}
|
|
|
steps:
|
|
|
- name: Checkout actions folder
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
with:
|
|
|
sparse-checkout: |
|
|
|
actions
|
|
|
+ clean: false
|
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -280,7 +304,9 @@ jobs:
|
|
|
|
|
|
- name: Record outputs
|
|
|
id: record
|
|
|
- run: echo "run_url=${{ inputs.run_url }}" >> "$GITHUB_OUTPUT"
|
|
|
+ env:
|
|
|
+ GH_AW_RUN_URL: ${{ inputs.run_url }}
|
|
|
+ run: echo "run_url=$GH_AW_RUN_URL" >> "$GITHUB_OUTPUT"
|
|
|
|
|
|
create_labels:
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'create_labels' && (!(github.event.repository.fork)) }}
|
|
|
@@ -290,12 +316,12 @@ jobs:
|
|
|
issues: write
|
|
|
steps:
|
|
|
- name: Checkout repository
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
with:
|
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -310,9 +336,9 @@ jobs:
|
|
|
await main();
|
|
|
|
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup-cli@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
- version: v0.79.4
|
|
|
+ version: v0.86.2
|
|
|
|
|
|
- name: Create missing labels
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
@@ -336,12 +362,12 @@ jobs:
|
|
|
issues: write
|
|
|
steps:
|
|
|
- name: Checkout repository
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
with:
|
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -356,13 +382,13 @@ jobs:
|
|
|
await main();
|
|
|
|
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup-cli@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
- version: v0.79.4
|
|
|
+ version: v0.86.2
|
|
|
|
|
|
- name: Restore activity report logs cache
|
|
|
id: activity_report_logs_cache
|
|
|
- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
|
+ uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
|
with:
|
|
|
path: ./.cache/gh-aw/activity-report-logs
|
|
|
key: ${{ runner.os }}-activity-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
|
|
|
@@ -377,16 +403,16 @@ jobs:
|
|
|
GH_AW_CMD_PREFIX: gh aw
|
|
|
run: |
|
|
|
${GH_AW_CMD_PREFIX} logs \
|
|
|
- --repo "${{ github.repository }}" \
|
|
|
+ --repo "$GITHUB_REPOSITORY" \
|
|
|
--start-date -1w \
|
|
|
- --count 100 \
|
|
|
+ --count 500 \
|
|
|
--output ./.cache/gh-aw/activity-report-logs \
|
|
|
--format markdown \
|
|
|
- > ./.cache/gh-aw/activity-report-logs/report.md
|
|
|
+ --report-file ./.cache/gh-aw/activity-report-logs/report.md
|
|
|
|
|
|
- name: Save activity report logs cache
|
|
|
if: ${{ always() }}
|
|
|
- uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
|
+ uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
|
with:
|
|
|
path: ./.cache/gh-aw/activity-report-logs
|
|
|
key: ${{ steps.activity_report_logs_cache.outputs.cache-primary-key }}
|
|
|
@@ -441,12 +467,12 @@ jobs:
|
|
|
issues: write
|
|
|
steps:
|
|
|
- name: Checkout repository
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
with:
|
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -461,13 +487,13 @@ jobs:
|
|
|
await main();
|
|
|
|
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup-cli@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
- version: v0.79.4
|
|
|
+ version: v0.86.2
|
|
|
|
|
|
- name: Restore forecast report logs cache
|
|
|
id: forecast_report_logs_cache
|
|
|
- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
|
+ uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
|
with:
|
|
|
path: ./.github/aw/logs
|
|
|
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
|
|
|
@@ -486,7 +512,7 @@ jobs:
|
|
|
run: |
|
|
|
mkdir -p ./.cache/gh-aw/forecast
|
|
|
set +e
|
|
|
- ${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
|
|
|
+ ${GH_AW_CMD_PREFIX} forecast --repo "$GITHUB_REPOSITORY" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
|
|
|
forecast_exit_code=$?
|
|
|
set -e
|
|
|
if [ "${forecast_exit_code}" -eq 124 ]; then
|
|
|
@@ -513,7 +539,7 @@ jobs:
|
|
|
|
|
|
- name: Save forecast report logs cache
|
|
|
if: ${{ always() }}
|
|
|
- uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
|
+ uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
|
with:
|
|
|
path: ./.github/aw/logs
|
|
|
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
|
|
|
@@ -538,7 +564,7 @@ jobs:
|
|
|
issues: write
|
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -570,12 +596,12 @@ jobs:
|
|
|
issues: write
|
|
|
steps:
|
|
|
- name: Checkout repository
|
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
with:
|
|
|
persist-credentials: false
|
|
|
|
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
@@ -590,9 +616,9 @@ jobs:
|
|
|
await main();
|
|
|
|
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@7cfd95b59ca996b7e2bebd6222e21ddd187a4e91 # v0.79.4
|
|
|
+ uses: github/gh-aw-actions/setup-cli@6aab9e5b5c91c615506061f09bedd81a23babe3c # v0.86.2
|
|
|
with:
|
|
|
- version: v0.79.4
|
|
|
+ version: v0.86.2
|
|
|
|
|
|
- name: Validate workflows and file issue on findings
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|