Skip to content

Commit

Permalink
cleaning up formatting for ci/cd and maybe fixing bash conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Jan 9, 2024
1 parent e22f341 commit 8b504ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-brew-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ jobs:
echo "old_sha=`echo $(grep sha ./Formula/smol-k8s-lab.rb | awk -F ' ' '{print $2}' | sed 's/"//g')`" >> $GITHUB_ENV
export old_sha=`echo $(grep sha ./Formula/smol-k8s-lab.rb | awk -F ' ' '{print $2}' | sed 's/"//g')`
echo "old sha: $old_sha new sha: $sha"
sed -i 's/${{ env.old_sha }}/${{ env.sha }}/' ./Formula/smol-k8s-lab.rb && grep sha ./Formula/smol-k8s-lab.rb
echo "old sha: $old_sha\nnew sha: $sha"
sed -i "s/$old_sha/$sha/" ./Formula/smol-k8s-lab.rb && grep sha ./Formula/smol-k8s-lab.rb
export file_changed=$(git diff --exit-code ./Formula/smol-k8s-lab.rb)
if [ $file_changed -ne 0 ]; then
if [[ $file_changed -ne 0 ]]; then
echo -e "\n--------------------------------------------"
echo -e "tagging and pushing to main branch\n"
git tag ${{ steps.upstreamRelease.outputs.release }}
Expand Down

0 comments on commit 8b504ed

Please sign in to comment.