Add pull request check

This commit is contained in:
Xiaonan Shen 2020-11-19 20:09:57 -08:00
parent a5e9ba3b55
commit 394c19af2d
No known key found for this signature in database
GPG Key ID: 211BF560D12417F5
2 changed files with 13 additions and 9 deletions

View File

@ -1 +1 @@
1.5.0-1 1.4.5-1

View File

@ -21,15 +21,19 @@ check_version() {
if [[ $VERSION != $CURR_VERSION ]]; then if [[ $VERSION != $CURR_VERSION ]]; then
echo "New release found: ${CURR_VERSION}" echo "New release found: ${CURR_VERSION}"
# # bump up to new release if [[ $IS_PULL_REQUEST == "true" ]]; then
# echo ${CURR_VERSION} > ${DIR}/VERSION echo "Action triggered by pull request. Do not bump version."
else
# bump up to new release
echo ${CURR_VERSION} > ${DIR}/VERSION
# # commit # commit
# git config --local user.email "actions@github.com" git config --local user.email "actions@github.com"
# git config --local user.name "Github Action" git config --local user.name "Github Action"
# git add ${DIR}/VERSION git add ${DIR}/VERSION
# git commit -m "Bump ${DIR} version to ${CURR_VERSION}" --author="Xiaonan Shen <s@sxn.dev>" git commit -m "Bump ${DIR} version to ${CURR_VERSION}" --author="Xiaonan Shen <s@sxn.dev>"
# git push git push
fi
else else
echo "Already newest version ${VERSION}" echo "Already newest version ${VERSION}"
fi fi