diff --git a/.github/scripts/runtime_version_up.sh b/.github/scripts/runtime_version_up.sh deleted file mode 100755 index a0735b5d5..000000000 --- a/.github/scripts/runtime_version_up.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -set -e - -runtime=$1 -versionName=$2 - -if [ $runtime == "amplitude" ]; then - file="runtime/amplitude/src/lib.rs" -elif [ $runtime == "pendulum" ]; then - file="runtime/pendulum/src/lib.rs" -fi - -echo "increment: $versionName" -# Use awk to increment the version of the lib -awk -v pat="$versionName" -F':' '$0~pat { {print $1": " $2+1","; next} }1' $file > temp && mv temp $file - - - diff --git a/.github/workflows/version-up.yml b/.github/workflows/version-up.yml index f0fa3969d..60ca9052c 100644 --- a/.github/workflows/version-up.yml +++ b/.github/workflows/version-up.yml @@ -47,7 +47,7 @@ jobs: - name: Check For Specific Version if: github.event.inputs.specific_version != '' run: | - bash .github/scripts/package_version_up ${{ github.event.inputs.specific_version }} + bash .github/scripts/package_version_up.sh ${{ github.event.inputs.specific_version }} if ${{ github.event.inputs.packages-all }} == 'true'; then echo "Upgrading crates to ${{ github.event.inputs.specific_version }}" &> changes.txt else @@ -55,7 +55,7 @@ jobs: fi - name: ${{ github.event.inputs.versioning }} Version Up for all - if: github.event.inputs.specific_version == '' && github.event.inputs.packages-all == 'true' + if: github.event.inputs.specific_version == '' && github.event.inputs.packages-all == 'true' continue-on-error: false run: | cargo set-version --bump ${{ github.event.inputs.versioning }} &> changes.txt diff --git a/script/get_commit.sh b/script/get_commit.sh deleted file mode 100644 index 862c07366..000000000 --- a/script/get_commit.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -set -e - -versionNumber=$1 - -tagNamePrefix="node-release" -## get the latest tag of this node -lastVersionName=$(git describe --abbrev=0 --tags --always `git rev-list --tags` | grep -i "$tagNamePrefix" -m 1) - -## get the commits since the last tag -latestCommitOfLastVersion=$(git log $lastVersionName --oneline --max-count=1 | cut -c1-7) - - -logs=( $(git log $latestCommitOfLastVersion..origin/main --oneline -- node/ | cut -c1-7) ) - if (( ${#logs[@]} == 0 )); then - echo "Error: Repo is up to date. No new release required". - exit 1 - fi - -echo -e "## What's Changed\n" >> Commits.txt -## output the relevant commits, and save to file -echo "relevant commits:" -for commit in "${logs[@]}"; do - link="$(git log --format="[%h](https://github.com/pendulum-chain/pendulum/commit/%h) %s" -n 1 $commit)" - echo $link - echo -e "* "$link"\n" >> Commits.txt -done - -$newVersionName -echo "new version: "$tagNamePrefix"-"$versionNumber