Skip to content

Commit

Permalink
re-added logic to prevent constant action execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mburridge96 committed Apr 17, 2024
1 parent c9817a0 commit 9d33a0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:
jobs:
macos:
runs-on: macos-latest
if: "startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -44,6 +45,7 @@ jobs:

windows:
runs-on: windows-latest
if: "startsWith(github.ref, 'refs/tags/')"
strategy:
matrix:
target: [x64, x86]
Expand All @@ -68,6 +70,7 @@ jobs:

linux:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
strategy:
matrix:
target: [x86_64, i686]
Expand All @@ -93,7 +96,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
# if: "startsWith(github.ref, 'refs/tags/')"
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos]
permissions:
contents: write
Expand Down

0 comments on commit 9d33a0e

Please sign in to comment.