From 7a3b5419696a57242e945a9cf45147e6413ff515 Mon Sep 17 00:00:00 2001 From: Pylogmon Date: Sun, 10 Sep 2023 11:08:10 +0800 Subject: [PATCH] ci: Test Homebrew --- .github/workflows/package.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index bbb9f1276c..1562fa0f47 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -302,27 +302,27 @@ jobs: homebrew: name: Update Homebrew cask - needs: build-for-macos - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags') + # needs: build-for-macos + runs-on: macos-latest + # if: startsWith(github.ref, 'refs/tags') steps: - name: Checkout repository uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Install git - run: | - sudo apt-get update - sudo apt-get install -y git - - name: Get Tag Name - run: | - echo "VERSION=$(git describe --tags | sed 's/-[0-9]*-.*//g')" >> $GITHUB_ENV - echo "VERSION=$(git describe --tags | sed 's/-[0-9]*-.*//g')" + # - name: Install git + # run: | + # sudo apt-get update + # sudo apt-get install -y git + # - name: Get Tag Name + # run: | + # echo "VERSION=$(git describe --tags | sed 's/-[0-9]*-.*//g')" >> $GITHUB_ENV + # echo "VERSION=$(git describe --tags | sed 's/-[0-9]*-.*//g')" - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@master - name: Set up Git run: | - sudo apt-get install git -y + # sudo apt-get install git -y git config --global user.email support@pot-app.com git config --global user.name pot-app - name: Update Homebrew cask @@ -331,7 +331,7 @@ jobs: run: | brew tap pot-app/homebrew-tap brew update - brew bump-cask-pr pot --version ${{env.VERSION}} --no-browse + brew bump-cask-pr pot --version 2.2.0 --no-browse winget: name: Update WinGet Package