From d4553355d6a8c0ac341c9534c927eeac5ee94520 Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Tue, 9 Apr 2024 00:34:24 +0200 Subject: [PATCH] Attempt to fix conditional tmpnet monitoring --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b0ddc65d6a..3f13f24a2e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -128,21 +128,21 @@ jobs: run: ./scripts/build.sh /tmp/e2e-test/avalanchego/plugins/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy - name: Start prometheus # Only run for the original repo; a forked repo won't have access to the monitoring credentials - if: (github.event.pull_request.head.repo.full_name == github.repository) || (github.event.repository.fork == false) + if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) shell: bash run: bash -x ./scripts/run_prometheus.sh env: PROMETHEUS_ID: ${{ secrets.PROMETHEUS_ID }} PROMETHEUS_PASSWORD: ${{ secrets.PROMETHEUS_PASSWORD }} - name: Start promtail - if: (github.event.pull_request.head.repo.full_name == github.repository) || (github.event.repository.fork == false) + if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) shell: bash run: bash -x ./scripts/run_promtail.sh env: LOKI_ID: ${{ secrets.LOKI_ID }} LOKI_PASSWORD: ${{ secrets.LOKI_PASSWORD }} - name: Notify of metrics availability - if: (github.event.pull_request.head.repo.full_name == github.repository) || (github.event.repository.fork == false) + if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) shell: bash run: .github/workflows/notify-metrics-availability.sh env: @@ -189,21 +189,21 @@ jobs: run: ./scripts/build.sh /tmp/e2e-test/avalanchego/plugins/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy - name: Start prometheus # Only run for the original repo; a forked repo won't have access to the monitoring credentials - if: (github.event.pull_request.head.repo.full_name == github.repository) || (github.event.repository.fork == false) + if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) shell: bash run: bash -x ./scripts/run_prometheus.sh env: PROMETHEUS_ID: ${{ secrets.PROMETHEUS_ID }} PROMETHEUS_PASSWORD: ${{ secrets.PROMETHEUS_PASSWORD }} - name: Start promtail - if: (github.event.pull_request.head.repo.full_name == github.repository) || (github.event.repository.fork == false) + if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) shell: bash run: bash -x ./scripts/run_promtail.sh env: LOKI_ID: ${{ secrets.LOKI_ID }} LOKI_PASSWORD: ${{ secrets.LOKI_PASSWORD }} - name: Notify of metrics availability - if: (github.event.pull_request.head.repo.full_name == github.repository) || (github.event.repository.fork == false) + if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) shell: bash run: .github/workflows/notify-metrics-availability.sh env: