diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06f9433e..68ac0b17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-latest needs: [build_all, verify-example-configs] if: | - (github.repository == 'prometheus-community/fortigate-exporter') + (github.repository == 'prometheus-community/fortigate_exporter') && (github.event_name == 'push' && github.event.ref == 'refs/heads/main') steps: @@ -83,9 +83,9 @@ jobs: runs-on: ubuntu-latest needs: [build_all, verify-example-configs] if: | - (github.repository == 'prometheus-community/fortigate-exporter') + (github.repository == 'prometheus-community/fortigate_exporter') && - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v0.')) + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d # v0.4.7