Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update conditions to not run certain jobs for PRs from forks (#1536)
Dhruv Bhanushali430f7da34883
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7c022792c..dcce3c6ae 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -170,7 +170,7 @@ jobs:gh-pages:name: PR Storybook and Tailwind Preview- if: github.repository == 'WordPress/openverse-frontend' && github.ref != 'refs/heads/main'+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login == 'WordPress'runs-on: ubuntu-lateststeps:diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.ymlindex b40231313..c8cd5ffdf 100644--- a/.github/workflows/ghcr.yml+++ b/.github/workflows/ghcr.yml@@ -12,7 +12,7 @@ jobs:push-to-ghcr:name: Build and push image for commitruns-on: ubuntu-latest- if: github.repository == 'WordPress/openverse-frontend'+ if: github.event_name == 'push' || github.event.pull_request.head.repo.owner.login == 'WordPress'steps:- uses: actions/checkout@v3