mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
Add pull request check
This commit is contained in:
parent
a5e9ba3b55
commit
394c19af2d
@ -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…
Reference in New Issue
Block a user