From 4ef2339f98b9ab16b5395edd96f1f1671b46c5de Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Mon, 23 Oct 2023 20:50:33 +1300 Subject: [PATCH] Add git config --- .github/workflows/build-test-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index d59d82f5..39b3f861 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -7,6 +7,9 @@ on: branches: - main +permissions: + contents: write + jobs: publish-to-psgallery: name: Publish @@ -24,6 +27,8 @@ jobs: $newVersion = [version]::new($version.Major, $version.Minor, $version.Build + 1) Write-Host "Bumping version from $version to $newVersion" Update-ModuleManifest -Path .\PwshSpectreConsole\PwshSpectreConsole.psd1 -ModuleVersion $newVersion + git config --global user.name 'Shaun Lawrie (via GitHub Actions)' + git config --global user.email 'shaun.r.lawrie@gmail.com' git add PwshSpectreConsole/PwshSpectreConsole.psd1 git commit -m "Bump version to $newVersion" git push