diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 2df6203..d158760 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -86,6 +86,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} needs: [ build, test ] + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - name: Download artifacts @@ -111,6 +112,7 @@ jobs: publish-indexes: needs: [ build, test, deploy ] runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository container: image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3 steps: diff --git a/.github/workflows/build-push-backend.yml b/.github/workflows/build-push-backend.yml index 03fd489..b2acab9 100644 --- a/.github/workflows/build-push-backend.yml +++ b/.github/workflows/build-push-backend.yml @@ -83,6 +83,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Log in to GitHub Container Registry + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository uses: docker/login-action@v3 with: registry: ghcr.io @@ -120,7 +121,7 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 - push: true + push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | diff --git a/.github/workflows/build-push-metadata_relay.yml b/.github/workflows/build-push-metadata_relay.yml index 0076966..8135174 100644 --- a/.github/workflows/build-push-metadata_relay.yml +++ b/.github/workflows/build-push-metadata_relay.yml @@ -45,6 +45,7 @@ jobs: - name: Log in to GitHub Container Registry uses: docker/login-action@v3 + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository with: registry: ghcr.io username: ${{ github.actor }} @@ -71,7 +72,7 @@ jobs: context: ./metadata_relay file: ./metadata_relay/Dockerfile platforms: linux/amd64,linux/arm64 - push: true + push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: |