Skip to content

Commit

Permalink
Run the "extract-version" step only on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MWin123 committed Oct 4, 2023
1 parent 626f801 commit a286c47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gradle.yaml
Expand Up @@ -121,13 +121,15 @@ jobs:
matrix.os == 'windows-2022'
with:
files: build/jpackage/*.exe
- name: Extract version
- name: Extract version (macOS)
id: extract-version
if: startsWith(github.ref, 'refs/tags/')
if: |
startsWith(github.ref, 'refs/tags/') &&
matrix.os == 'macos-12'
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "tag-name=${TAG_NAME:1}" >> $GITHUB_OUTPUT
- name: Bump Homebrew cask version
- name: Bump Homebrew cask version (macOS)
uses: MWin123/bump-homebrew-formula-action@v0.3.0
if: |
startsWith(github.ref, 'refs/tags/') &&
Expand Down

0 comments on commit a286c47

Please sign in to comment.