rsnext/release-stats.sh
JJ Kasper 100a1d3acc
Update release stats workflow (#17580)
Follow-up to https://github.com/vercel/next.js/pull/17533 this makes sure the file used to signal release stats should be skipped for a non-release merge is created in a location that is accessible by the stats action and also updates the release action info detection for the new workflow
2020-10-05 09:32:12 +00:00

18 lines
372 B
Bash
Executable file

#!/bin/bash
git describe --exact-match
if [[ ! $? -eq 0 ]];then
echo "Nothing to publish, exiting.."
touch .github/actions/next-stats-action/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