Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update actions for forks vs main repo (#1407)

Dhruv Bhanushali534257ecb7aa
diff --git a/.github/workflows/bundle_size.yml b/.github/workflows/bundle_size.yml
index 027d9d86a..c2fd1cf03 100644
--- a/.github/workflows/bundle_size.yml
+++ b/.github/workflows/bundle_size.yml
@@ -33,6 +33,7 @@ jobs:
build:
name: Check
runs-on: ubuntu-latest
+ if: github.repository == 'WordPress/openverse-frontend'
steps:
- uses: actions/checkout@v2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 16daa70c6..d79384a4b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,7 +2,8 @@ name: CI
on:
push:
- branches: -main
+ branches:
+ - main
pull_request:
jobs:
@@ -120,6 +121,7 @@ jobs:
gh-pages:
name: PR Storybook and Tailwind Preview
+ if: github.repository == 'WordPress/openverse-frontend'
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml
index 3d7ad4557..d6f18f037 100644
--- a/.github/workflows/gh-pages.yaml
+++ b/.github/workflows/gh-pages.yaml
@@ -8,8 +8,6 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
- if: ${{ github.repository == 'WordPress/openverse-frontend' }}
-
steps:
- name: Checkout
uses: actions/checkout@v2
diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml
index 0d3432ff9..b4e58f4ed 100644
--- a/.github/workflows/ghcr.yml
+++ b/.github/workflows/ghcr.yml
@@ -12,6 +12,7 @@ jobs:
push-to-ghcr:
name: Build and push image for commit
runs-on: ubuntu-latest
+ if: github.repository == 'WordPress/openverse-frontend'
steps:
- uses: actions/checkout@v2