Skip to content

Commit 8ea0d04

Browse files
authored
Add git credentials for versions update Github action (#4372)
Otherwise, the action cannot commit and push.
1 parent 3ac9262 commit 8ea0d04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/bump-agent-versions.yml

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
exit 0
4444
fi
4545
git diff -p
46+
git config --global user.name 'apmmachine'
47+
git config --global user.email 'apmmachine@users.noreply.github.com'
4648
git add ".agent-versions.json"
4749
git commit -m "[$GITHUB_REF_NAME](automation) Update .agent-versions.json" -m "This file is used for picking agent versions in integration tests. It's content is based on the reponse from https://artifacts-api.elastic.co/v1/versions/"
4850
git push --set-upstream origin "update-agent-versions-$GITHUB_RUN_ID"

0 commit comments

Comments
 (0)