Skip to content

Commit 81e5d92

Browse files
committed
Updated Git configuration in workflow
Moved the Git configuration step to an earlier stage in the GitHub Actions workflow. This ensures that Git is properly configured before dependencies are installed. The user name and email for Git have been set to "GitHub Actions" and "actions@github.com", respectively.
1 parent 560d0bf commit 81e5d92

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/run.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ jobs:
1717
with:
1818
ruby-version: '3.0'
1919
bundler-cache: true
20+
- name: Configure Git
21+
run: |
22+
git config --global --add safe.directory /github/workspace
23+
git config --global user.name "GitHub Actions"
24+
git config --global user.email "actions@github.com"
2025
- name: Install dependencies
2126
run: |
2227
bundle config unset deployment
2328
sudo gem install bundler:2.2.15
2429
bundle install
2530
bundle add kramdown-parser-gfm
2631
bundle install
27-
- name: Configure Git
28-
run: |
29-
git config --global --add safe.directory /github/workspace
3032
- uses: helaili/jekyll-action@2.0.1
3133
env:
3234
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)