Skip to content

Commit

Permalink
Update pack.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Oct 21, 2023
1 parent 29b371f commit 095cbfd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/scripts/process-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ elif [ -z "${modified_files[@]}" ]; then
new_semver="$(echo $current_semver | awk -F. -v OFS=. '{$NF++; print}')"
fi

# Modify the pack.toml file
if [ ! -z "$new_semver" ]; then
sed -i "s/version = \"$current_semver\"/version = \"$new_semver\"/g" pack.toml
git diff-index --quiet HEAD
if [ "$?" == "1" ]; then
git add pack.toml > /dev/null
git commit -m "Bump version to $new_semver." > /dev/null
git push > /dev/null
fi
fi

# Create a new release
git tag -a "$current_semver" -m "Release $new_semver." > /dev/null
git push --tags > /dev/null
2 changes: 1 addition & 1 deletion pack.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Apollo"
author = "Lunar Starstrum <[email protected]>"
version = "1.2.2"
version = "1.3.0"
pack-format = "packwiz:1.1.0"

[index]
Expand Down

0 comments on commit 095cbfd

Please sign in to comment.