From a61a4a4ae435217444d7d68ca173003441fae51b Mon Sep 17 00:00:00 2001 From: Holt Skinner Date: Tue, 20 May 2025 13:29:28 -0700 Subject: [PATCH 1/3] ci: Fix git username/email for github actions --- .github/workflows/update-a2a-types.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-a2a-types.yml b/.github/workflows/update-a2a-types.yml index 56bf302a..59aedc21 100644 --- a/.github/workflows/update-a2a-types.yml +++ b/.github/workflows/update-a2a-types.yml @@ -2,7 +2,7 @@ name: Update A2A Schema from Specification on: schedule: - - cron: "0 0 * * *" + - cron: '0 0 * * *' workflow_dispatch: jobs: @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: '3.13' - name: Install uv run: curl -LsSf https://astral.sh/uv/install.sh | sh @@ -71,8 +71,8 @@ jobs: else echo "Changes detected in $GENERATED_FILE. Committing..." # Configure git user for the commit - git config user.name "github-actions" - git config user.email "github-actions@github.com" + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com # Add the generated file git add "$GENERATED_FILE" From 602c1f9ce026ab0c49ab51d79401bd8f34814b99 Mon Sep 17 00:00:00 2001 From: Holt Skinner Date: Tue, 20 May 2025 13:33:15 -0700 Subject: [PATCH 2/3] Remove if for now --- .github/workflows/update-a2a-types.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update-a2a-types.yml b/.github/workflows/update-a2a-types.yml index 59aedc21..53d05fe5 100644 --- a/.github/workflows/update-a2a-types.yml +++ b/.github/workflows/update-a2a-types.yml @@ -59,7 +59,6 @@ jobs: echo "Codegen finished." - name: Commit and push if generated file changed - if: github.ref == 'refs/heads/main' # Or your default branch name run: | set -euo pipefail From ee856de0b2d1602b741a12454bd10a31babe635f Mon Sep 17 00:00:00 2001 From: holtskinner Date: Tue, 20 May 2025 13:43:37 -0700 Subject: [PATCH 3/3] re-add if --- .github/workflows/update-a2a-types.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-a2a-types.yml b/.github/workflows/update-a2a-types.yml index 53d05fe5..1fbc3bff 100644 --- a/.github/workflows/update-a2a-types.yml +++ b/.github/workflows/update-a2a-types.yml @@ -59,6 +59,7 @@ jobs: echo "Codegen finished." - name: Commit and push if generated file changed + if: github.ref == 'refs/heads/main' run: | set -euo pipefail @@ -70,8 +71,8 @@ jobs: else echo "Changes detected in $GENERATED_FILE. Committing..." # Configure git user for the commit - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git config user.name "github-actions" + git config user.email "github-actions@github.com" # Add the generated file git add "$GENERATED_FILE"