Skip to content

Commit

Permalink
ci: Test Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Sep 10, 2023
1 parent c1f4ca6 commit 7a3b541
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
git config --global user.name pot-app
- name: Update Homebrew cask
Expand All @@ -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
Expand Down

0 comments on commit 7a3b541

Please sign in to comment.