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
This commit is contained in:
Niq Dudfield
2026-09-29 12:23:04 +07:00
committed by GitHub
parent a3bd76fdc9
commit 43d90b8549
2 changed files with 5 additions and 2 deletions

View File

@@ -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: |

View File

@@ -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 }}