Skip to content

Commit

Permalink
Attempt to fix conditional tmpnet monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Apr 8, 2024
1 parent 9374d89 commit ad52843
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad52843

Please sign in to comment.