Skip to content

Commit

Permalink
Setup github user only if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszwawrzyk committed Mar 4, 2025
1 parent 06548a8 commit bee1f02
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@ runs:
- name: Move obtained bazel-steward.jar
run: mv bazel-steward.jar /tmp/bazel-steward.jar
shell: bash
- name: Setup git user
- name: Check if git user is set
id: check_git_user
run: |
if git config user.name; then
echo "user_exists=true" >> $GITHUB_ENV
else
echo "user_exists=false" >> $GITHUB_ENV
fi
shell: bash
- name: Setup git user if missing
if: env.user_exists == 'false'
uses: fregante/setup-git-user@v2
- name: Run bazel steward
run: |
Expand Down

0 comments on commit bee1f02

Please sign in to comment.