diff --git a/.github/data/aklog.rb b/.github/data/aklog.rb index 988aa89..35450ef 100644 --- a/.github/data/aklog.rb +++ b/.github/data/aklog.rb @@ -6,6 +6,7 @@ class Aklog < Formula homepage "https://github.com/wswenyue/aklog" url "#_url_#" sha256 "#_sha256_#" + version '#_version_#' def install diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04b11b7..9640a02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,7 +65,7 @@ jobs: echo "> sha256: ${sha256}" >> $GITHUB_STEP_SUMMARY rm -rf ./aklog.tar.gz en_url=`echo $url |sed 's#\/#\\\/#g'` - sed -e "s/#_url_#/${en_url}/g; s/#_sha256_#/${sha256}/g" .github/data/aklog.rb > formula.rb + sed -e "s/#_version_#/${NEW_VERSION}/g; s/#_url_#/${en_url}/g; s/#_sha256_#/${sha256}/g" .github/data/aklog.rb > formula.rb echo "- :arrow_double_up: upload formula file ..." >> $GITHUB_STEP_SUMMARY - name: upload new Formula