Skip to content

Commit

Permalink
Delemte temp vars/commands and fix package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Robertorosmaninho committed Oct 3, 2023
1 parent 68189ae commit 9b8f3bc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ jobs:
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.httpconnectionManager.ttlSeconds=30
run: |
set -euxo pipefail
PACKAGE=kframework
VERSION=$(cat kframework/package/version)
ROOT_URL='https://github.com/runtimeverification/k/releases/download'
Expand All @@ -227,10 +226,7 @@ jobs:
git commit Formula/$PACKAGE.rb -m "Update ${PACKAGE} to ${VERSION}: part 1"
../kframework/package/macos/brew-build-and-update-to-local-bottle ${PACKAGE} ${VERSION} ${ROOT_URL}
git reset HEAD^
TEMP_BOTTLE_NAME=$(find . -name "kframework-${VERSION}.ventura.bottle*.tar.gz")
TEMP2_BOTTLE_NAME=$(find . -name "kframework--${VERSION}.ventura.bottle*.tar.gz")
ls
LOCAL_BOTTLE_NAME=$(basename ${TEMP_BOTTLE_NAME})
LOCAL_BOTTLE_NAME=$(basename $(find . -name "kframework--${VERSION}.ventura.bottle*.tar.gz"))
BOTTLE_NAME=$(echo ${LOCAL_BOTTLE_NAME#./} | sed 's!kframework--!kframework-!')
../kframework/package/macos/brew-update-to-final ${PACKAGE} ${VERSION} ${ROOT_URL}
echo "path=${LOCAL_BOTTLE_NAME}" >> ${GITHUB_OUTPUT}
Expand Down

0 comments on commit 9b8f3bc

Please sign in to comment.