Skip to content

Commit 0891e1e

Browse files
Merge pull request #482 from sakshar2303/fix/470-git-user-config-in-build-and-release
2 parents 2c78c9d + 64b2a55 commit 0891e1e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build-reusable.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
permissions:
77
attestations: write
8-
contents: read
8+
contents: write
99
id-token: write
1010
packages: write
1111

@@ -24,6 +24,10 @@ jobs:
2424
uses: gradle/actions/setup-gradle@v4
2525
with:
2626
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
27+
- name: Configure Git user
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
2731
- name: Bump version (nebula final)
2832
if: github.ref == 'refs/heads/main'
2933
working-directory: .
@@ -72,6 +76,7 @@ jobs:
7276
- uses: actions/attest-build-provenance@v1
7377
with:
7478
subject-path: 'pi4micronaut-utils/build/libs/**/*.jar'
79+
7580
create-release:
7681
runs-on: ubuntu-latest
7782
needs: [build-library, publish-jar]
@@ -111,4 +116,4 @@ jobs:
111116
gh release create "${{ steps.read_version.outputs.version }}" \
112117
--verify-tag \
113118
--generate-notes \
114-
"pi4micronaut-utils/build/libs/pi4micronaut-utils-${{ steps.read_version.outputs.version }}-all.jar"
119+
"pi4micronaut-utils/build/libs/pi4micronaut-utils-${{ steps.read_version.outputs.version }}-all.jar"

0 commit comments

Comments
 (0)