Skip to content

Commit

Permalink
Configure git in GH Actions tests
Browse files Browse the repository at this point in the history
Could set GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL env vars ultimately? But
I don't have admin access for the repo yet.
  • Loading branch information
doshitan committed Dec 26, 2024
1 parent f7be8b0 commit 6bd1853
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/configure-git/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Configure git"
description: "Configure basic things to enable git usage in a GitHub Action"
runs:
using: "composite"
steps:
- name: Configure git
shell: bash
run: |
git config --global user.name nava-platform-bot
git config --global user.email [email protected]
1 change: 1 addition & 0 deletions .github/workflows/ci-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/configure-git
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-pipx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/configure-git
- uses: actions/setup-python@v5
with:
python-version: "3.13"
Expand Down

0 comments on commit 6bd1853

Please sign in to comment.