diff --git a/.github/workflows/deploy-snapshot.yaml b/.github/workflows/deploy-snapshot.yaml index 0bc0e5bbbbd..be5486cf0f2 100644 --- a/.github/workflows/deploy-snapshot.yaml +++ b/.github/workflows/deploy-snapshot.yaml @@ -8,7 +8,7 @@ on: jobs: gradle: runs-on: ubuntu-latest - if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} + if: github.repository == 'detekt/detekt' && !contains(github.event.head_commit.message, 'ci skip') steps: - name: Checkout Repo uses: actions/checkout@v2 @@ -31,4 +31,3 @@ jobs: MAVEN_CENTRAL_PW: ${{ secrets.MAVEN_CENTRAL_PW }} with: arguments: publishAllPublicationsToSonatypeSnapshotRepository -Dsnapshot=true --stacktrace - if: ${{ github.repository == 'detekt/detekt'}} diff --git a/.github/workflows/deploy-website.yaml b/.github/workflows/deploy-website.yaml index 7715b531567..cb0982667f4 100644 --- a/.github/workflows/deploy-website.yaml +++ b/.github/workflows/deploy-website.yaml @@ -7,6 +7,7 @@ on: jobs: build-detekt-docs: + if: github.repository == 'detekt/detekt' runs-on: ubuntu-latest steps: - name: Checkout Repo