From 43d90b85496da9b22c208c90c41dcfcd0213dfcf Mon Sep 17 00:00:00 2001 From: Niq Dudfield Date: Tue, 29 Sep 2026 12:23:04 +0700 Subject: [PATCH] ci: run the codecov upload and docker release builder only from xahau/xahaud (#13) * ci: upload coverage to codecov only from xahau/xahaud * ci: run the docker release builder only from xahau/xahaud --- .github/workflows/build-in-docker.yml | 5 ++++- .github/workflows/xahau-ga-nix.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-in-docker.yml b/.github/workflows/build-in-docker.yml index 9825e6106..d1598d71b 100644 --- a/.github/workflows/build-in-docker.yml +++ b/.github/workflows/build-in-docker.yml @@ -15,6 +15,9 @@ env: jobs: checkout: + # build publishes to build.xahau.tech, so this workflow only runs from + # Xahau/xahaud. build and tests are skipped along with this job. + if: github.repository == 'Xahau/xahaud' runs-on: [self-hosted, vanity] outputs: checkout_path: ${{ steps.vars.outputs.checkout_path }} @@ -86,7 +89,7 @@ jobs: cleanup: runs-on: [self-hosted, xahaud-build] needs: [tests, checkout] - if: always() + if: always() && github.repository == 'Xahau/xahaud' steps: - name: Cleanup workspace run: | diff --git a/.github/workflows/xahau-ga-nix.yml b/.github/workflows/xahau-ga-nix.yml index b46325841..67a94606d 100644 --- a/.github/workflows/xahau-ga-nix.yml +++ b/.github/workflows/xahau-ga-nix.yml @@ -498,7 +498,7 @@ jobs: retention-days: 30 - name: Upload coverage report - if: matrix.job_type == 'coverage' + if: matrix.job_type == 'coverage' && github.repository == 'Xahau/xahaud' uses: codecov/codecov-action@v5 with: files: ${{ env.COVERAGE_FILE }}