Skip to content

Commit ee856de

Browse files
committed
re-add if
1 parent 602c1f9 commit ee856de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update-a2a-types.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
echo "Codegen finished."
6060
6161
- name: Commit and push if generated file changed
62+
if: github.ref == 'refs/heads/main'
6263
run: |
6364
set -euo pipefail
6465
@@ -70,8 +71,8 @@ jobs:
7071
else
7172
echo "Changes detected in $GENERATED_FILE. Committing..."
7273
# Configure git user for the commit
73-
git config user.name github-actions[bot]
74-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
74+
git config user.name "github-actions"
75+
git config user.email "github-actions@github.com"
7576
7677
# Add the generated file
7778
git add "$GENERATED_FILE"

0 commit comments

Comments
 (0)