File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292 changelog :
9393 name : Generate new changelog
9494 runs-on : ubuntu-latest
95+ outputs :
96+ commit_hash : ' ${{ steps.committing.outputs.commit_hash }}'
9597 steps :
9698 - name : Checkout
9799 uses : actions/checkout@v4
@@ -154,6 +156,7 @@ jobs:
154156 name : changelog
155157 path : CHANGELOG.md
156158 - name : Commit and push the new changelog
159+ id : committing
157160 run : |
158161 if [ -z $(git status -uno --porcelain) ]; then
159162 printf 'Changelogs are identical, nothing to commit\n'
@@ -164,6 +167,9 @@ jobs:
164167
165168 git add CHANGELOG.md
166169 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"
167173 fi
168174 - name : Push changes
169175 uses : ad-m/github-push-action@v0.8.0
@@ -181,6 +187,7 @@ jobs:
181187 uses : actions/checkout@v4
182188 with :
183189 set-safe-directory : ' true'
190+ ref : ' ${{ needs.changelog.outputs.commit_hash }}'
184191 - name : Install dependencies
185192 run : npm ci --ignore-scripts
186193 - name : Maybe generate tag
Original file line number Diff line number Diff line change 11{
22 "name" : " async-wait-until" ,
3- "version" : " 2.0.24 " ,
3+ "version" : " 2.0.25 " ,
44 "description" : " Waits until the given predicate function returns a truthy value, then resolves" ,
55 "main" : " ./dist/index.js" ,
66 "module" : " ./dist/index.esm.js" ,
You can’t perform that action at this time.
0 commit comments