Skip to content

Commit

Permalink
only run verify-versions on PRs (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew <andrew.pelletier@octo.us>
  • Loading branch information
pelletier2017 and Andrew authored Aug 9, 2024
1 parent 0da7124 commit 83ede9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/minimal-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:

jobs:
verify-versions:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +45,6 @@ jobs:

release:
if: github.ref == 'refs/heads/main'
needs: verify-versions
runs-on: ubuntu-latest
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:

jobs:
verify-versions:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -38,7 +39,6 @@ jobs:

release:
if: github.ref == 'refs/heads/main'
needs: verify-versions
runs-on: ubuntu-latest
defaults:
run:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:

jobs:
verify-versions:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
push: false

release:
needs: [test, verify-versions]
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
defaults:
Expand Down

0 comments on commit 83ede9a

Please sign in to comment.