Skip to content

Commit 7093957

Browse files
committed
build commits tag version to readme
1 parent 6e8a9da commit 7093957

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,20 @@ jobs:
8080
draft: true
8181
prerelease: false
8282

83-
# - uses: stefanzweifel/git-auto-commit-action@v4
84-
# with:
85-
# commit_message: "TASK: Updating version in README"
86-
# commit_user_name: Auto Mation
87-
# commit_user_email: automation@commercetools.com
88-
# commit_author: Auto Mation <automation@commercetools.com>
83+
- name: Checkout
84+
uses: actions/checkout@v2
85+
with:
86+
path: build_master
87+
88+
- run: ./gradlew -Pversion=$SOURCE_TAG writeVersionToReadme
89+
working-directory: build_master
90+
env:
91+
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
92+
93+
- uses: stefanzweifel/git-auto-commit-action@v4
94+
with:
95+
repository: build_master
96+
commit_message: "TASK: Updating version in README"
97+
commit_user_name: Auto Mation
98+
commit_user_email: automation@commercetools.com
99+
commit_author: Auto Mation <automation@commercetools.com>

0 commit comments

Comments
 (0)