Support copying workflow as-is to other Prometheus repositories.

Signed-off-by: Charles Korn <charles.korn@grafana.com>
This commit is contained in:
Charles Korn 2024-03-18 10:33:56 +11:00
parent dca47ce2c9
commit b641715363
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ jobs:
PushDockerHubReadme:
runs-on: ubuntu-latest
name: Push README to Docker Hub
if: github.repository == 'prometheus/prometheus'
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@ -34,7 +34,7 @@ jobs:
PushQuayIoReadme:
runs-on: ubuntu-latest
name: Push README to quay.io
if: github.repository == 'prometheus/prometheus'
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1