Skip to content

Commit 6063ca8

Browse files
authored
Merge pull request #4 from IBM/rahlk-update-workflow
Update main.yml
2 parents 38c924a + d7df56e commit 6063ca8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types:
88
- closed
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
build-and-package:
1215
runs-on: ubuntu-latest
@@ -17,6 +20,8 @@ jobs:
1720
steps:
1821
- name: Check out code
1922
uses: actions/checkout@v4
23+
with:
24+
persist-credentials: true
2025

2126
- name: Set up JDK 17 from GraalVM
2227
run: |
@@ -36,7 +41,11 @@ jobs:
3641
run: echo "::set-output name=tag::$(date +'%Y%m%dT%H%M%S')"
3742

3843
- name: Create Git Tag
39-
run: git tag ${{ steps.newtag.outputs.tag }} && git push origin ${{ steps.newtag.outputs.tag }}
44+
run: |
45+
git config --global user.name 'GitHub Actions'
46+
git config --global user.email 'actions@github.com'
47+
git tag ${{ steps.newtag.outputs.tag }}
48+
git push origin ${{ steps.newtag.outputs.tag }}
4049
4150
- name: Publish Release
4251
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)