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

fix: fix if conditions in GitHub workflows

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2024-11-08 11:28:05 +01:00
parent 408e8ebd6e
commit 625e1306b1
No known key found for this signature in database
GPG key ID: 0190A66C0A10FC4F
3 changed files with 4 additions and 5 deletions

View file

@ -9,7 +9,7 @@ jobs:
e2e-tests: e2e-tests:
name: E2E experimental version tests name: E2E experimental version tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.repository == 'prometheus-operator/prometheus-operator' }} if: github.repository == 'prometheus-operator/prometheus-operator'
strategy: strategy:
# since upgrade test was failing other tests were cancelled, setting this so that other test run # since upgrade test was failing other tests were cancelled, setting this so that other test run
fail-fast: false fail-fast: false
@ -73,11 +73,10 @@ jobs:
# Added to summarize the matrix and allow easy branch protection rules setup # Added to summarize the matrix and allow easy branch protection rules setup
e2e-tests-result: e2e-tests-result:
name: End-to-End Test Results name: End-to-End Test Results
if: always() if: github.repository == 'prometheus-operator/prometheus-operator'
needs: needs:
- e2e-tests - e2e-tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.repository == 'prometheus-operator/prometheus-operator' }}
steps: steps:
- name: Mark the job as a success - name: Mark the job as a success
if: needs.e2e-tests.result == 'success' if: needs.e2e-tests.result == 'success'

View file

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

View file

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