diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 5384b45..caa57da 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -71,6 +71,12 @@ jobs: sed -i "s|sha256 \".*\"|sha256 \"${{ env.MACOS_SHA256 }}\"|" $FORMULA_FILE sed -i "s|url \".*linux_amd64\.tar\.gz\"|url \"https://github.com/deggja/netfetch/releases/download/v${{ env.VERSION }}/netfetch_${{ env.VERSION }}_linux_amd64.tar.gz\"|" $FORMULA_FILE sed -i "s|sha256 \".*\"|sha256 \"${{ env.LINUX_SHA256 }}\"|" $FORMULA_FILE + + - name: Fetch Latest Changes from Main + run: | + git fetch origin main + git checkout main + git pull origin main - name: Remove temp directory run: rm -rf temp @@ -81,6 +87,7 @@ jobs: commit_message: "chore: update homebrew formula for v${{ env.VERSION }}" branch: chore/homebrew-${{ env.VERSION }} create_branch: true + push_options: '--force' file_pattern: "formula/netfetch.rb" commit_user_name: "Netfetch Bot" commit_author: "Netfetch Bot "