Files
e4d6c80fed build(deps): bump github/gh-aw-actions/setup from 0.89.9 to 0.89.17 (#749)
* build(deps): bump github/gh-aw-actions/setup from 0.89.9 to 0.89.17

Bumps [github/gh-aw-actions/setup](https://github.com/github/gh-aw-actions) from 0.89.9 to 0.89.17.
- [Release notes](https://github.com/github/gh-aw-actions/releases)
- [Changelog](https://github.com/github/gh-aw-actions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/gh-aw-actions/compare/8e14d3d3690a1555482792fa1540493828a40d16...f3b81cdb3070066a47faa9bdf440f4f1dc78b1f0)

---
updated-dependencies:
- dependency-name: github/gh-aw-actions/setup
  dependency-version: 0.89.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(ci): align gh-aw compiler and action pins

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(ci): regenerate issue workflow with gh-aw v0.89.17

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* ci: remove redundant workflow recompilation check

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: New Future <NewFuture@users.noreply.github.com>
Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-24 00:03:43 +08:00

114 lines
3.2 KiB
YAML

# Workflow to check AGENTS.md directory structure
# Runs daily and creates an issue if changes are detected
name: Update AGENTS.md
on:
pull_request:
branches: [ master, main ]
paths:
- 'AGENTS.md'
- '.agents/**'
- '.github/agents/**'
- '.github/copilot-instructions.md'
- '.github/aw/**'
- '.github/instructions/**'
- '.github/scripts/update_agents_structure.py'
- '.github/workflows/**'
- 'tools/**'
- 'ddns/**'
- 'schema/**'
- 'docs/**'
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
# Allow manual triggering
permissions:
contents: read
# Prevent concurrent runs
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.ref }}"
cancel-in-progress: true
jobs:
contracts:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Run tooling contract tests
run: python3 -m unittest discover tools/tests -p "test_*.py" -v
- name: Run portable agent structure contract
run: python3 .github/scripts/update_agents_structure.py --check
- name: Run provider parity contract
run: python3 tools/check.py --providers
report-structure-drift:
if: github.event_name != 'pull_request'
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Run portable agent structure contract
run: python3 .github/scripts/update_agents_structure.py
- name: Check for existing issue
if: always() && hashFiles('.github/issue_body.md') != ''
id: existing
run: |
existing_issue=$(gh issue list --label "agents-structure-update" --state open --limit 1 --json number --jq '.[0].number // empty')
if [ -n "$existing_issue" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
echo "issue_number=$existing_issue" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create issue
if: always() && hashFiles('.github/issue_body.md') != '' && steps.existing.outputs.exists == 'false'
run: |
gh issue create \
--title "docs(agents): AGENTS.md directory structure needs update" \
--body-file .github/issue_body.md \
--label "documentation,automated,agents-structure-update"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tooling contract tests
if: always()
run: python3 -m unittest discover tools/tests -p "test_*.py" -v
- name: Run provider parity contract
if: always()
run: python3 tools/check.py --providers