1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

ci: Let github runner run only in the prometheus-operator main repository

This commit is contained in:
liyang 2024-11-07 23:28:03 +08:00
parent 42975feab2
commit 6a64279e32
3 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,7 @@ jobs:
e2e-tests:
name: E2E experimental version tests
runs-on: ubuntu-latest
if: ${{ github.repository == 'prometheus-operator/prometheus-operator' }}
strategy:
# since upgrade test was failing other tests were cancelled, setting this so that other test run
fail-fast: false
@ -76,6 +77,7 @@ jobs:
needs:
- e2e-tests
runs-on: ubuntu-latest
if: ${{ github.repository == 'prometheus-operator/prometheus-operator' }}
steps:
- name: Mark the job as a success
if: needs.e2e-tests.result == 'success'

View file

@ -6,6 +6,7 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
if: ${{ github.repository == 'prometheus-operator/prometheus-operator' }}
steps:
- uses: actions/stale@v9
with:

View file

@ -8,6 +8,7 @@ jobs:
upgrade-prometheus:
name: Upgrade Prometheus
runs-on: ubuntu-latest
if: ${{ github.repository == 'prometheus-operator/prometheus-operator' }}
steps:
- name: Reclaim disk space
run: |