From a828ef7992c8947ae347095825c41265b4ae2cb8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 15:47:38 +0000 Subject: [PATCH] Add workflow to auto-compile agentic workflow lock files Triggers on pushes to main that touch .github/workflows/*.md files. Installs gh-aw, compiles all agentic workflow markdown files, and commits the resulting .lock.yml files back to the repo. https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw --- .github/workflows/compile-workflows.yaml | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/compile-workflows.yaml diff --git a/.github/workflows/compile-workflows.yaml b/.github/workflows/compile-workflows.yaml new file mode 100644 index 0000000..cb1a4b0 --- /dev/null +++ b/.github/workflows/compile-workflows.yaml @@ -0,0 +1,45 @@ +name: Compile Agentic Workflows + +on: + push: + branches: ["main"] + paths: + - ".github/workflows/*.md" + +permissions: + contents: write + +jobs: + compile: + name: Compile + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install gh-aw extension + run: gh extension install github/gh-aw + env: + GH_TOKEN: ${{ github.token }} + + - name: Compile all agentic workflows + run: | + for f in .github/workflows/*.md; do + echo "Compiling ${f}..." + gh aw compile "$f" + done + env: + GH_TOKEN: ${{ github.token }} + + - name: Commit and push lock files if changed + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + git add .github/workflows/*.lock.yml + if git diff --cached --quiet; then + echo "No lock file changes to commit." + else + git commit -m "Recompile agentic workflow lock files" + git push + fi