Actions(swagger-gen): Don't clone Enterprise on forks (#107177)

This commit is contained in:
Mariell Hoversholm
2025-06-25 14:11:34 +02:00
committed by GitHub
parent 4738957360
commit b85b2b157d
+2 -6
View File
@@ -17,7 +17,7 @@ jobs:
verify:
name: Verify committed API specs match
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) || github.repository == 'grafana/grafana' }}
if: ${{ github.repository == 'grafana/grafana' }}
permissions:
contents: read # clone the repository
id-token: write # required for Vault access
@@ -32,15 +32,11 @@ jobs:
with:
go-version-file: go.mod
- name: Setup Enterprise
if: ${{ github.event.pull_request.head.repo.fork == false }}
uses: ./.github/actions/setup-enterprise
with:
github-app-name: 'grafana-ci-bot'
- name: Set go version
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Generate Swagger specs
run: make swagger-clean && make openapi3-gen
- name: Check for changes