From 5065c4eaaccbf3ba7b39971b4300b62c0a27e38d Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 15 Apr 2022 20:29:02 +0000 Subject: [PATCH] ci: Don't run internal steps if forked This was causing CI to fail for contributions. --- .github/workflows/coder.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index 917b072493bee..4bdce128b7001 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -184,7 +184,7 @@ jobs: -timeout=3m -count=$GOCOUNT -short -failfast - name: Upload DataDog Trace - if: (success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder' + if: always() && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork env: DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} DD_DATABASE: fake @@ -193,7 +193,7 @@ jobs: run: go run scripts/datadog-cireport/main.go gotests.xml - uses: codecov/codecov-action@v3 - if: github.actor != 'dependabot[bot]' && github.repository_owner == 'coder' + if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork with: token: ${{ secrets.CODECOV_TOKEN }} files: ./gotests.coverage @@ -271,7 +271,7 @@ jobs: -count=1 -parallel=2 -race -failfast - name: Upload DataDog Trace - if: (success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder' + if: always() && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork env: DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} DD_DATABASE: postgresql @@ -279,7 +279,7 @@ jobs: run: go run scripts/datadog-cireport/main.go gotests.xml - uses: codecov/codecov-action@v3 - if: github.actor != 'dependabot[bot]' && github.repository_owner == 'coder' + if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork with: token: ${{ secrets.CODECOV_TOKEN }} files: ./gotests.coverage @@ -290,7 +290,7 @@ jobs: name: "deploy" runs-on: ubuntu-latest timeout-minutes: 20 - if: github.ref == 'refs/heads/main' && github.repository_owner == 'coder' + if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork permissions: contents: read id-token: write @@ -396,7 +396,7 @@ jobs: working-directory: site - uses: codecov/codecov-action@v3 - if: github.actor != 'dependabot[bot]' && github.repository_owner == 'coder' + if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork with: token: ${{ secrets.CODECOV_TOKEN }} files: ./site/coverage/lcov.info @@ -404,7 +404,7 @@ jobs: fail_ci_if_error: true - name: Upload DataDog Trace - if: (success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder' + if: always() && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork env: DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} DD_CATEGORY: unit @@ -485,7 +485,7 @@ jobs: working-directory: site - name: Upload DataDog Trace - if: (success() || failure()) && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && github.repository_owner == 'coder' + if: always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && !github.event.pull_request.head.repo.fork env: DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} DD_CATEGORY: e2e pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy