Skip to content

Commit

Permalink
ci: do configure a user in case Git needs it
Browse files Browse the repository at this point in the history
The `mingw-w64-cv2pdb` build, for example, wants to be able to call `git
tag`, which requires a user to be configured. Let's do that, then.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Sep 22, 2022
1 parent 367b471 commit 1c34c0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,22 @@ jobs:
fail-fast: false
matrix:
directory: ${{ fromJSON(needs.determine-packages.outputs.matrix) }}
env:
HOME: "${{github.workspace}}\\home"
steps:
- uses: actions/checkout@v3
- uses: git-for-windows/setup-git-for-windows-sdk@v1
with:
flavor: full
- name: configure build
shell: bash
run: |
USER_NAME="$GITHUB_ACTOR" &&
USER_EMAIL="[email protected]" &&
mkdir -p "$HOME" &&
git config --global user.name "$USER_NAME" &&
git config --global user.email "$USER_EMAIL" &&
echo "PACKAGER=$USER_NAME <$USER_EMAIL>" >>$GITHUB_ENV &&
- name: build ${{ matrix.directory }}
shell: bash
run: |
Expand Down

0 comments on commit 1c34c0d

Please sign in to comment.