|
@@ -1,4 +1,4 @@
|
|
|
-# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.89.21). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
|
|
|
|
|
+# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v1.0.1). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
|
#
|
|
#
|
|
|
# ___ _ _
|
|
# ___ _ _
|
|
|
# / _ \ | | (_)
|
|
# / _ \ | | (_)
|
|
@@ -24,8 +24,10 @@
|
|
|
# This file defines the generated agentic maintenance workflow for this repository.
|
|
# This file defines the generated agentic maintenance workflow for this repository.
|
|
|
# It runs scheduled cleanup for expiring safe outputs and supports manual maintenance operations.
|
|
# 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.
|
|
|
|
|
|
|
+# This workflow is generated automatically when workflows use expiring safe outputs,
|
|
|
|
|
+# when workflows enable steering (safe-outputs.steer), declare compaction-enabled
|
|
|
|
|
+# ledgers (tools.ledger) or work queues, or when repository maintenance features are
|
|
|
|
|
+# enabled in .github/workflows/aw.json.
|
|
|
#
|
|
#
|
|
|
# To disable maintenance workflow generation, set in .github/workflows/aw.json:
|
|
# To disable maintenance workflow generation, set in .github/workflows/aw.json:
|
|
|
# {"maintenance": false}
|
|
# {"maintenance": false}
|
|
@@ -55,7 +57,6 @@ on:
|
|
|
- 'create_labels'
|
|
- 'create_labels'
|
|
|
- 'activity_report'
|
|
- 'activity_report'
|
|
|
- 'close_agentic_workflows_issues'
|
|
- 'close_agentic_workflows_issues'
|
|
|
- - 'clean_cache_memories'
|
|
|
|
|
- 'update_pull_request_branches'
|
|
- 'update_pull_request_branches'
|
|
|
- 'validate'
|
|
- 'validate'
|
|
|
- 'forecast'
|
|
- 'forecast'
|
|
@@ -67,7 +68,7 @@ on:
|
|
|
workflow_call:
|
|
workflow_call:
|
|
|
inputs:
|
|
inputs:
|
|
|
operation:
|
|
operation:
|
|
|
- description: 'Optional maintenance operation to run (disable, enable, update, upgrade, safe_outputs, create_labels, activity_report, close_agentic_workflows_issues, clean_cache_memories, update_pull_request_branches, validate, forecast)'
|
|
|
|
|
|
|
+ description: 'Optional maintenance operation to run (disable, enable, update, upgrade, safe_outputs, create_labels, activity_report, close_agentic_workflows_issues, update_pull_request_branches, validate, forecast)'
|
|
|
required: false
|
|
required: false
|
|
|
type: string
|
|
type: string
|
|
|
default: ''
|
|
default: ''
|
|
@@ -79,22 +80,30 @@ on:
|
|
|
outputs:
|
|
outputs:
|
|
|
operation_completed:
|
|
operation_completed:
|
|
|
description: 'The maintenance operation that was completed (empty when none ran or a scheduled job ran)'
|
|
description: 'The maintenance operation that was completed (empty when none ran or a scheduled job ran)'
|
|
|
- value: ${{ jobs.run_operation.outputs.operation || inputs.operation }}
|
|
|
|
|
|
|
+ value: ${{ jobs.run_operation.outputs.operation || (inputs.operation == 'safe_outputs' || inputs.operation == 'create_labels' || inputs.operation == 'activity_report' || inputs.operation == 'close_agentic_workflows_issues' || inputs.operation == 'update_pull_request_branches' || inputs.operation == 'validate' || inputs.operation == 'forecast') && inputs.operation || '' }}
|
|
|
applied_run_url:
|
|
applied_run_url:
|
|
|
description: 'The run URL that safe outputs were applied from'
|
|
description: 'The run URL that safe outputs were applied from'
|
|
|
value: ${{ jobs.apply_safe_outputs.outputs.run_url }}
|
|
value: ${{ jobs.apply_safe_outputs.outputs.run_url }}
|
|
|
|
|
|
|
|
|
|
+# Jobs request only the permissions needed for their individual maintenance operations.
|
|
|
permissions: {}
|
|
permissions: {}
|
|
|
|
|
|
|
|
|
|
+# Serialize maintenance runs to avoid overlapping writes to repository resources.
|
|
|
|
|
+concurrency:
|
|
|
|
|
+ group: ${{ github.workflow }}-${{ github.repository }}
|
|
|
|
|
+ cancel-in-progress: false
|
|
|
|
|
+
|
|
|
jobs:
|
|
jobs:
|
|
|
close-expired-discussions:
|
|
close-expired-discussions:
|
|
|
|
|
+ name: Close expired discussions
|
|
|
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '' || inputs.operation == 'none') }}
|
|
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '' || inputs.operation == 'none') }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Closing expired resources requires write access to this resource type only.
|
|
|
permissions:
|
|
permissions:
|
|
|
discussions: write
|
|
discussions: write
|
|
|
steps:
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -109,13 +118,15 @@ jobs:
|
|
|
const { main } = require(path.join(actionsDir, 'close_expired_discussions.cjs'));
|
|
const { main } = require(path.join(actionsDir, 'close_expired_discussions.cjs'));
|
|
|
await main();
|
|
await main();
|
|
|
close-expired-issues:
|
|
close-expired-issues:
|
|
|
|
|
+ name: Close expired issues
|
|
|
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '' || inputs.operation == 'none') }}
|
|
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '' || inputs.operation == 'none') }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Closing expired resources requires write access to this resource type only.
|
|
|
permissions:
|
|
permissions:
|
|
|
issues: write
|
|
issues: write
|
|
|
steps:
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -130,13 +141,15 @@ jobs:
|
|
|
const { main } = require(path.join(actionsDir, 'close_expired_issues.cjs'));
|
|
const { main } = require(path.join(actionsDir, 'close_expired_issues.cjs'));
|
|
|
await main();
|
|
await main();
|
|
|
close-expired-pull-requests:
|
|
close-expired-pull-requests:
|
|
|
|
|
+ name: 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 == '' || inputs.operation == 'none') }}
|
|
if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '' || inputs.operation == 'none') }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Closing expired resources requires write access to this resource type only.
|
|
|
permissions:
|
|
permissions:
|
|
|
pull-requests: write
|
|
pull-requests: write
|
|
|
steps:
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -151,31 +164,11 @@ jobs:
|
|
|
const { main } = require(path.join(actionsDir, 'close_expired_pull_requests.cjs'));
|
|
const { main } = require(path.join(actionsDir, 'close_expired_pull_requests.cjs'));
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
- cleanup-cache-memory:
|
|
|
|
|
- if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '' || inputs.operation == 'none' || inputs.operation == 'clean_cache_memories') }}
|
|
|
|
|
- runs-on: ubuntu-slim
|
|
|
|
|
- permissions:
|
|
|
|
|
- actions: write
|
|
|
|
|
- steps:
|
|
|
|
|
- - name: Setup Scripts
|
|
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
- with:
|
|
|
|
|
- destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
-
|
|
|
|
|
- - name: Cleanup outdated cache-memory entries
|
|
|
|
|
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
|
|
- with:
|
|
|
|
|
- script: |
|
|
|
|
|
- const path = require('path');
|
|
|
|
|
- const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
|
|
|
- const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
|
|
|
- setupGlobals(core, github, context, exec, io, getOctokit);
|
|
|
|
|
- const { main } = require(path.join(actionsDir, 'cleanup_cache_memory.cjs'));
|
|
|
|
|
- await main();
|
|
|
|
|
-
|
|
|
|
|
run_operation:
|
|
run_operation:
|
|
|
|
|
+ name: Run maintenance operation
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation != '' && inputs.operation != 'none' && inputs.operation != 'safe_outputs' && inputs.operation != 'create_labels' && inputs.operation != 'activity_report' && inputs.operation != 'close_agentic_workflows_issues' && inputs.operation != 'clean_cache_memories' && inputs.operation != 'update_pull_request_branches' && inputs.operation != 'validate' && inputs.operation != 'forecast' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation != '' && inputs.operation != 'none' && inputs.operation != 'safe_outputs' && inputs.operation != 'create_labels' && inputs.operation != 'activity_report' && inputs.operation != 'close_agentic_workflows_issues' && inputs.operation != 'clean_cache_memories' && inputs.operation != 'update_pull_request_branches' && inputs.operation != 'validate' && inputs.operation != 'forecast' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Updates, upgrades, and workflow enable/disable operations need repository write access.
|
|
|
permissions:
|
|
permissions:
|
|
|
actions: write
|
|
actions: write
|
|
|
contents: write
|
|
contents: write
|
|
@@ -189,7 +182,7 @@ jobs:
|
|
|
persist-credentials: false
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -206,9 +199,9 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
- name: Install gh-aw
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup-cli@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
- version: v0.89.21
|
|
|
|
|
|
|
+ version: v1.0.1
|
|
|
|
|
|
|
|
- name: Run operation
|
|
- name: Run operation
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
@@ -233,14 +226,16 @@ jobs:
|
|
|
run: echo "operation=$GH_AW_OPERATION" >> "$GITHUB_OUTPUT"
|
|
run: echo "operation=$GH_AW_OPERATION" >> "$GITHUB_OUTPUT"
|
|
|
|
|
|
|
|
update_pull_request_branches:
|
|
update_pull_request_branches:
|
|
|
|
|
+ name: 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)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'update_pull_request_branches' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Branch updates may write commits and update pull requests.
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: write
|
|
contents: write
|
|
|
pull-requests: write
|
|
pull-requests: write
|
|
|
steps:
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -271,8 +266,10 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
apply_safe_outputs:
|
|
apply_safe_outputs:
|
|
|
|
|
+ name: Apply safe outputs
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'safe_outputs' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'safe_outputs' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Replay can create or update any supported safe-output resource.
|
|
|
permissions:
|
|
permissions:
|
|
|
actions: read
|
|
actions: read
|
|
|
contents: write
|
|
contents: write
|
|
@@ -291,7 +288,7 @@ jobs:
|
|
|
persist-credentials: false
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -310,6 +307,8 @@ jobs:
|
|
|
- name: Apply Safe Outputs
|
|
- name: Apply Safe Outputs
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
|
env:
|
|
env:
|
|
|
|
|
+ GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}
|
|
|
|
|
+ GH_AW_WORKFLOW_ID: "agentics-maintenance"
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
GH_AW_RUN_URL: ${{ inputs.run_url }}
|
|
GH_AW_RUN_URL: ${{ inputs.run_url }}
|
|
|
with:
|
|
with:
|
|
@@ -329,8 +328,10 @@ jobs:
|
|
|
run: echo "run_url=$GH_AW_RUN_URL" >> "$GITHUB_OUTPUT"
|
|
run: echo "run_url=$GH_AW_RUN_URL" >> "$GITHUB_OUTPUT"
|
|
|
|
|
|
|
|
create_labels:
|
|
create_labels:
|
|
|
|
|
+ name: Create labels
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'create_labels' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'create_labels' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Creating repository labels uses the issues API.
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: read
|
|
contents: read
|
|
|
issues: write
|
|
issues: write
|
|
@@ -341,7 +342,7 @@ jobs:
|
|
|
persist-credentials: false
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -358,9 +359,9 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
- name: Install gh-aw
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup-cli@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
- version: v0.89.21
|
|
|
|
|
|
|
+ version: v1.0.1
|
|
|
|
|
|
|
|
- name: Create missing labels
|
|
- name: Create missing labels
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
@@ -377,9 +378,11 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
activity_report:
|
|
activity_report:
|
|
|
|
|
+ name: activity report
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'activity_report' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'activity_report' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
timeout-minutes: 120
|
|
timeout-minutes: 120
|
|
|
|
|
+ # Read workflow logs and create the resulting report issue.
|
|
|
permissions:
|
|
permissions:
|
|
|
actions: read
|
|
actions: read
|
|
|
contents: read
|
|
contents: read
|
|
@@ -391,7 +394,7 @@ jobs:
|
|
|
persist-credentials: false
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -408,9 +411,9 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
- name: Install gh-aw
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup-cli@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
- version: v0.89.21
|
|
|
|
|
|
|
+ version: v1.0.1
|
|
|
|
|
|
|
|
- name: Restore activity report logs cache
|
|
- name: Restore activity report logs cache
|
|
|
id: activity_report_logs_cache
|
|
id: activity_report_logs_cache
|
|
@@ -484,9 +487,11 @@ jobs:
|
|
|
core.info('Created issue #' + createdIssue.data.number + ': ' + createdIssue.data.html_url);
|
|
core.info('Created issue #' + createdIssue.data.number + ': ' + createdIssue.data.html_url);
|
|
|
|
|
|
|
|
forecast_report:
|
|
forecast_report:
|
|
|
|
|
+ name: forecast report
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'forecast' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'forecast' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
timeout-minutes: 60
|
|
timeout-minutes: 60
|
|
|
|
|
+ # Read workflow logs and create the resulting report issue.
|
|
|
permissions:
|
|
permissions:
|
|
|
actions: read
|
|
actions: read
|
|
|
contents: read
|
|
contents: read
|
|
@@ -498,7 +503,7 @@ jobs:
|
|
|
persist-credentials: false
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -515,9 +520,9 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
- name: Install gh-aw
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup-cli@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
- version: v0.89.21
|
|
|
|
|
|
|
+ version: v1.0.1
|
|
|
|
|
|
|
|
- name: Restore forecast report logs cache
|
|
- name: Restore forecast report logs cache
|
|
|
id: forecast_report_logs_cache
|
|
id: forecast_report_logs_cache
|
|
@@ -535,7 +540,6 @@ jobs:
|
|
|
shell: bash
|
|
shell: bash
|
|
|
env:
|
|
env:
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- DEBUG: "*"
|
|
|
|
|
GH_AW_CMD_PREFIX: gh aw
|
|
GH_AW_CMD_PREFIX: gh aw
|
|
|
run: |
|
|
run: |
|
|
|
mkdir -p ./.cache/gh-aw/forecast
|
|
mkdir -p ./.cache/gh-aw/forecast
|
|
@@ -588,13 +592,15 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
close_agentic_workflows_issues:
|
|
close_agentic_workflows_issues:
|
|
|
|
|
+ name: Close agentic workflows issues
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'close_agentic_workflows_issues' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'close_agentic_workflows_issues' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-slim
|
|
runs-on: ubuntu-slim
|
|
|
|
|
+ # Closing no-repro issues requires issues: write.
|
|
|
permissions:
|
|
permissions:
|
|
|
issues: write
|
|
issues: write
|
|
|
steps:
|
|
steps:
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -623,8 +629,10 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
validate_workflows:
|
|
validate_workflows:
|
|
|
|
|
+ name: Validate workflows
|
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'validate' && (!(github.event.repository.fork)) }}
|
|
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'validate' && (!(github.event.repository.fork)) }}
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
+ # Read workflow sources and file issues for validation findings.
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: read
|
|
contents: read
|
|
|
issues: write
|
|
issues: write
|
|
@@ -635,7 +643,7 @@ jobs:
|
|
|
persist-credentials: false
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Scripts
|
|
- name: Setup Scripts
|
|
|
- uses: github/gh-aw-actions/setup@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
destination: ${{ runner.temp }}/gh-aw/actions
|
|
|
|
|
|
|
@@ -652,9 +660,9 @@ jobs:
|
|
|
await main();
|
|
await main();
|
|
|
|
|
|
|
|
- name: Install gh-aw
|
|
- name: Install gh-aw
|
|
|
- uses: github/gh-aw-actions/setup-cli@924af5fdc64061cfbf66fb584c8b07e2ac230c60 # v0.89.21
|
|
|
|
|
|
|
+ uses: github/gh-aw-actions/setup-cli@221ba4f4319de6b8e809d1a15528b3ae6a818aa5 # v1.0.1
|
|
|
with:
|
|
with:
|
|
|
- version: v0.89.21
|
|
|
|
|
|
|
+ version: v1.0.1
|
|
|
|
|
|
|
|
- name: Validate workflows and file issue on findings
|
|
- name: Validate workflows and file issue on findings
|
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|