-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release stats workflow (#17533)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
10f7b8f
commit f27e1f8
Showing
4 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
git describe --exact-match | ||
|
||
if [[ ! $? -eq 0 ]];then | ||
echo "Nothing to publish, exiting.." | ||
touch SKIP_NEXT_STATS.txt | ||
exit 0; | ||
fi | ||
|
||
if [[ -z "$NPM_TOKEN" ]];then | ||
echo "No NPM_TOKEN, exiting.." | ||
exit 0; | ||
fi | ||
|
||
echo "Publish occurred, running release stats..." | ||
echo "Waiting 30 seconds to allow publish to finalize" | ||
sleep 30 |