Add pull request check
This commit is contained in:
parent
a5e9ba3b55
commit
394c19af2d
2 changed files with 13 additions and 9 deletions
|
|
@ -1 +1 @@
|
||||||
1.5.0-1
|
1.4.5-1
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue