Skip to content

Commit

Permalink
fix curl and remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Jan 9, 2024
1 parent 7e3c2cc commit e41eb3e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/update-brew-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ jobs:
echo -e "\n--------------------------------------------"
echo -e "replacing the sha of old version with new version\n"
curl -O https://github.com/small-hack/smol-k8s-lab/archive/refs/tags/${{ steps.upstreamRelease.outputs.release }}.tar.gz
echo "ls -hal ${{ steps.upstreamRelease.outputs.release }}.tar.gz"
ls -hal ${{ steps.upstreamRelease.outputs.release }}.tar.gz
export sha=`echo -n $(shasum -a 256 ${{ steps.upstreamRelease.outputs.release }}.tar.gz | cut -d ' ' -f 1)`
export old_sha=`echo -n $(grep sha ./Formula/smol-k8s-lab.rb | awk -F ' ' '{print $2}' | sed 's/"//g')`
curl -sfLO https://github.com/small-hack/smol-k8s-lab/archive/refs/tags/${{ steps.upstreamRelease.outputs.release }}.tar.gz
export sha=`echo -n $(shasum -a 256 ${{ steps.upstreamRelease.outputs.release }}.tar.gz | cut -d ' ' -f 1)`
echo -e "old sha: $old_sha \nnew sha: $sha"
sed -i "s/$old_sha/$sha/" ./Formula/smol-k8s-lab.rb
Expand Down

0 comments on commit e41eb3e

Please sign in to comment.