File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 92
92
changelog :
93
93
name : Generate new changelog
94
94
runs-on : ubuntu-latest
95
+ outputs :
96
+ commit_hash : ' ${{ steps.committing.outputs.commit_hash }}'
95
97
steps :
96
98
- name : Checkout
97
99
uses : actions/checkout@v4
@@ -154,6 +156,7 @@ jobs:
154
156
name : changelog
155
157
path : CHANGELOG.md
156
158
- name : Commit and push the new changelog
159
+ id : committing
157
160
run : |
158
161
if [ -z $(git status -uno --porcelain) ]; then
159
162
printf 'Changelogs are identical, nothing to commit\n'
@@ -164,6 +167,9 @@ jobs:
164
167
165
168
git add CHANGELOG.md
166
169
git commit -am "Update the project changelog"
170
+
171
+ commit_hash=$( git --no-pager log -1 --format=%H )
172
+ echo "commit_hash=${commit_hash}" >> "$GITHUB_OUTPUT"
167
173
fi
168
174
- name : Push changes
169
175
@@ -181,6 +187,7 @@ jobs:
181
187
uses : actions/checkout@v4
182
188
with :
183
189
set-safe-directory : ' true'
190
+ ref : ' ${{ needs.changelog.outputs.commit_hash }}'
184
191
- name : Install dependencies
185
192
run : npm ci --ignore-scripts
186
193
- name : Maybe generate tag
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " async-wait-until" ,
3
- "version" : " 2.0.24 " ,
3
+ "version" : " 2.0.25 " ,
4
4
"description" : " Waits until the given predicate function returns a truthy value, then resolves" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.esm.js" ,
You can’t perform that action at this time.
0 commit comments