From 1e5dbf954b32136dac89414d9e0fc154e853598a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Dec 2025 18:22:22 +0000 Subject: [PATCH 1/4] Initial plan From d66f9bae22cdd4869f7d0f708c20208e9f366885 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Dec 2025 18:26:33 +0000 Subject: [PATCH 2/4] Add update-workflows GitHub Action - Installs gh-aw extension using official installation script - Runs gh aw update to update workflow definitions - Runs gh aw compile to compile workflows - Automatically commits and pushes any changes - Scheduled to run weekly on Sundays - Can be manually triggered via workflow_dispatch Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/update-workflows.yml | 93 ++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 .github/workflows/update-workflows.yml diff --git a/.github/workflows/update-workflows.yml b/.github/workflows/update-workflows.yml new file mode 100644 index 0000000..ef0af4f --- /dev/null +++ b/.github/workflows/update-workflows.yml @@ -0,0 +1,93 @@ +name: "Update Agentic Workflows" + +# This workflow automatically updates and compiles agentic workflows +on: + schedule: + - cron: "0 0 * * 0" # Run weekly on Sunday at midnight UTC + workflow_dispatch: # Allow manual trigger + push: + paths: + - .github/workflows/update-workflows.yml + +jobs: + update-workflows: + runs-on: ubuntu-latest + + permissions: + contents: write # Need write permission to commit changes + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install gh CLI (if not already installed) + run: | + if ! command -v gh &> /dev/null; then + echo "Installing gh CLI..." + curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg + sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null + sudo apt update + sudo apt install gh -y + else + echo "gh CLI is already installed" + fi + gh --version + + - name: Install gh-aw extension + run: | + curl -fsSL https://raw.githubusercontent.com/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Verify gh-aw installation + run: gh aw version + + - name: Run gh aw update + run: gh aw update + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Run gh aw compile + run: gh aw compile + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check for changes + id: check_changes + run: | + if [[ -n $(git status --porcelain) ]]; then + echo "changes=true" >> $GITHUB_OUTPUT + echo "Changes detected:" + git status --short + else + echo "changes=false" >> $GITHUB_OUTPUT + echo "No changes detected" + fi + + - name: Commit and push changes + if: steps.check_changes.outputs.changes == 'true' + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "chore: update agentic workflows + + - Ran gh aw update + - Ran gh aw compile + - Auto-generated by update-workflows action" + git push + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Summary + run: | + echo "## Workflow Update Summary" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + if [[ "${{ steps.check_changes.outputs.changes }}" == "true" ]]; then + echo "✅ Changes were detected and committed" >> $GITHUB_STEP_SUMMARY + else + echo "ℹ️ No changes were detected" >> $GITHUB_STEP_SUMMARY + fi From 503858402731b53bb23e0d51550c128d5e28e936 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Dec 2025 18:47:55 +0000 Subject: [PATCH 3/4] Address review feedback - Remove gh CLI installation step (always installed on runners) - Replace 'gh aw update' with 'gh aw init' - Update commit message to reflect gh aw init Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/update-workflows.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/update-workflows.yml b/.github/workflows/update-workflows.yml index ef0af4f..def4ce9 100644 --- a/.github/workflows/update-workflows.yml +++ b/.github/workflows/update-workflows.yml @@ -22,20 +22,6 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - - name: Install gh CLI (if not already installed) - run: | - if ! command -v gh &> /dev/null; then - echo "Installing gh CLI..." - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg - sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null - sudo apt update - sudo apt install gh -y - else - echo "gh CLI is already installed" - fi - gh --version - - name: Install gh-aw extension run: | curl -fsSL https://raw.githubusercontent.com/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash @@ -45,8 +31,8 @@ jobs: - name: Verify gh-aw installation run: gh aw version - - name: Run gh aw update - run: gh aw update + - name: Run gh aw init + run: gh aw init env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -75,7 +61,7 @@ jobs: git add . git commit -m "chore: update agentic workflows - - Ran gh aw update + - Ran gh aw init - Ran gh aw compile - Auto-generated by update-workflows action" git push From cdedc0a02a24f5245afa2ed585274793086328ff Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Dec 2025 18:55:11 +0000 Subject: [PATCH 4/4] Randomize cron schedule minute - Changed from "0 0 * * 0" to "23 0 * * 0" - Runs at 00:23 UTC instead of 00:00 UTC to avoid load spikes Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/update-workflows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-workflows.yml b/.github/workflows/update-workflows.yml index def4ce9..5a10f3b 100644 --- a/.github/workflows/update-workflows.yml +++ b/.github/workflows/update-workflows.yml @@ -3,7 +3,7 @@ name: "Update Agentic Workflows" # This workflow automatically updates and compiles agentic workflows on: schedule: - - cron: "0 0 * * 0" # Run weekly on Sunday at midnight UTC + - cron: "23 0 * * 0" # Run weekly on Sunday at 00:23 UTC workflow_dispatch: # Allow manual trigger push: paths: