Skip to content

Commit

Permalink
build: Prevent smoke test executions on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio authored and aalmiray committed Oct 27, 2022
1 parent 632254e commit 262aef7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests-ant.yml
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
precheck:
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
if: github.repository == 'jreleaser/jreleaser' && startsWith(github.event.head_commit.message, 'Releasing version') != true
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.vars.outputs.VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests-cli.yml
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
precheck:
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
if: github.repository == 'jreleaser/jreleaser' && startsWith(github.event.head_commit.message, 'Releasing version') != true
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.vars.outputs.VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests-gradle.yml
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
precheck:
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
if: github.repository == 'jreleaser/jreleaser' && startsWith(github.event.head_commit.message, 'Releasing version') != true
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.vars.outputs.VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-tests-maven.yml
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
precheck:
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
if: github.repository == 'jreleaser/jreleaser' && startsWith(github.event.head_commit.message, 'Releasing version') != true
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.vars.outputs.VERSION }}
Expand Down

0 comments on commit 262aef7

Please sign in to comment.