Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 4, 2024
1 parent 38a00b0 commit 0dfc1a6
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/controller-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ jobs:
working-directory: go/controller
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4.1.0
uses: actions/setup-go@v4
with:
go-version-file: go/controller/go.mod
cache: true
Expand All @@ -96,13 +94,11 @@ jobs:
run: PATH=$PATH:$GOPATH/bin make --directory=.. tools
- name: Regenerate docs
run: PATH=$PATH:$GOPATH/bin make codegen-crd-docs
- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@v45
with:
files: go/controller/docs/**
since_last_remote_commit: true
- run: git diff
- name: Check git diff
id: diff
run: |
git --no-pager diff
if [[ $(git --no-pager diff | head -c1 | wc -c) -ne 0 ]]; then exit 1; fi
- name: Fail if CRD docs are outdated
if: steps.changed-files-specific.outputs.any_changed == 'true'
env:
Expand Down

0 comments on commit 0dfc1a6

Please sign in to comment.