Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ononoki1 authored May 5, 2022
1 parent 3c8ccdc commit 2676997
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ version=$(cat /github/workspace/version)
minor=$(cat /github/workspace/minor)
if [[ $hash != $(cat /github/workspace/hash) ]]; then
echo $hash > /github/workspace/hash
version=$(($(cat /github/workspace/version)+1))
echo $version > /github/workspace/version
if [[ $GITHUB_EVENT_NAME == push ]]; then
version=0
minor=$(($(cat /github/workspace/minor)+1))
echo $minor > /github/workspace/minor
else
version=$(($(cat /github/workspace/version)+1))
fi
echo $version > /github/workspace/version
change=1
echo This is a new version.
else
Expand Down

0 comments on commit 2676997

Please sign in to comment.