diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index a84391c..9881e36 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -8,7 +8,7 @@ jobs: renovate: name: Update Renovate PR runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'dependencies') + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (contains(github.event.pull_request.labels.*.name, 'dependencies')) }} steps: - name: Update PR diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 302534e..d11a012 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: jobs: build: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} name: CI - build & test runs-on: ubuntu-latest steps: