File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 87
87
needs : prepare-release
88
88
with :
89
89
commit-changes : true
90
+ version : ${{ needs.prepare-release.outputs.version }}
90
91
secrets :
91
92
GH_ACCESS_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
92
93
GH_ACCESS_GPG_KEY : ${{ secrets.GH_ACCESS_GPG_KEY }}
@@ -104,6 +105,7 @@ jobs:
104
105
with :
105
106
token : ${{ secrets.GH_ACCESS_TOKEN }}
106
107
fetch-depth : 0
108
+ ref : ${{ needs.update-readme.outputs.commit-hash }}
107
109
108
110
- name : Install GnuPG Tools
109
111
run : |
@@ -174,6 +176,7 @@ jobs:
174
176
175
177
- name : Publish Semantic Release
176
178
env :
179
+ commit : ${{ needs.update-readme.outputs.commit-hash }}
177
180
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
178
181
GITHUB_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
179
182
GIT_AUTHOR_NAME : ${{ secrets.GIT_USER_NAME }}
Original file line number Diff line number Diff line change 33
33
type : boolean
34
34
required : false
35
35
default : false
36
+ version :
37
+ description : " The version to set the app to during deploy/release"
38
+ type : string
39
+ required : false
40
+ outputs :
41
+ commit-hash :
42
+ description : " The commit hash for the updated README.md commit"
43
+ value : ${{ jobs.commit-readme.outputs.commit_hash }}
36
44
push :
37
45
paths :
38
46
- ' **/*.mjs'
@@ -100,9 +108,14 @@ jobs:
100
108
sudo apt-get install gettext-base
101
109
102
110
- name : Update README.md
111
+ env :
112
+ VERSION : ${{ github.event.inputs.version }}
103
113
run : |
104
114
set -x
105
115
npm install -g @hashgraph/solo
116
+ npm link
117
+
118
+ [[ -n "${VERSION}" ]] && npm version ${VERSION} -f --no-git-tag-version
106
119
which solo
107
120
108
121
export SOLO_CLUSTER_NAME=solo
@@ -178,7 +191,8 @@ jobs:
178
191
git_commit_gpgsign : true
179
192
180
193
- name : Commit README.md Changes
181
- if : ${{ inputs.commit-changes }}
194
+ id : commit-readme
195
+ if : ${{ github.event.inputs.dry-run-enabled != 'true' && !cancelled() && !failure() && inputs.commit-changes }}
182
196
uses : stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
183
197
with :
184
198
commit_message : " auto update README.md [skip ci]"
You can’t perform that action at this time.
0 commit comments